From fb3e8eae5bb2e56e2e1a213209fc38fa116d49ce Mon Sep 17 00:00:00 2001 From: ajurna Date: Tue, 16 Jun 2015 23:05:48 +0100 Subject: [PATCH] Changed the way it handles paths to urlencode. now supports subdirectories added breadcrumbs --- comic/templates/base.html | 8 ++- comic/templates/comic/index.html | 13 +++- comic/templates/comic/read_comic.html | 8 +-- comic/urls.py | 3 + comic/views.py | 88 ++++++++++++++++++++++----- 5 files changed, 98 insertions(+), 22 deletions(-) diff --git a/comic/templates/base.html b/comic/templates/base.html index f006497..131495d 100644 --- a/comic/templates/base.html +++ b/comic/templates/base.html @@ -50,7 +50,13 @@ - +
{% block content %}{% endblock %}
diff --git a/comic/templates/comic/index.html b/comic/templates/comic/index.html index 8dbdf20..f028242 100644 --- a/comic/templates/comic/index.html +++ b/comic/templates/comic/index.html @@ -1,11 +1,22 @@ {% extends "base.html" %} {% block title %}My amazing blog{% endblock %} + +{% block breadcrumb %} + {% for crumb in breadcrumbs %} +
  • {{ crumb.name }}
  • + {% endfor %} +{% endblock %} {% block content %}

    Comics

    {% if file_list %} {% for file in file_list %} - {{ file }} + {% if file.isdir %} + {{ file }} + {% endif %} + {% if file.iscb %} + {{ file }} + {% endif %} {% endfor %} {% else %}

    No comics.

    diff --git a/comic/templates/comic/read_comic.html b/comic/templates/comic/read_comic.html index 428a8ff..bf0bfdf 100644 --- a/comic/templates/comic/read_comic.html +++ b/comic/templates/comic/read_comic.html @@ -2,12 +2,12 @@ {% block content %}

    - - + +
    -Prev +Prev {% if pages %}