diff options
Diffstat (limited to 'bn_django')
4 files changed, 10 insertions, 4 deletions
diff --git a/bn_django/photos/templates/photos/base.html b/bn_django/photos/templates/photos/base.html index 94d9808..d229057 100644 --- a/bn_django/photos/templates/photos/base.html +++ b/bn_django/photos/templates/photos/base.html @@ -1 +1,5 @@ {% extends "base.html" %} + +{% block path %} + <a href="/photos/">photos</a> +{% endblock %} diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html index f9d1bd6..318091b 100644 --- a/bn_django/photos/templates/photos/gallery_detail.html +++ b/bn_django/photos/templates/photos/gallery_detail.html @@ -2,8 +2,9 @@ {# {% load markup %} #} {% block path %} - <a href="../">photos</a> » +{{ block.super }} {% if object %} + » <a href="../{{ object.id }}">{{ object.title }}</a> {% endif %} {% endblock %} @@ -20,7 +21,6 @@ Gallery: {{ object.title }} {% if object.photo_set.count %} {% for item in object.photo_set.all %} - <span class="photo_thumb"> <a href="../detail/{{ item.id }}"> <img src="{{ item.thumburl }}" diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html index 61225c4..b709092 100644 --- a/bn_django/photos/templates/photos/gallery_list.html +++ b/bn_django/photos/templates/photos/gallery_list.html @@ -1,7 +1,6 @@ {% extends "photos/base.html" %} {# {% load markup %} #} -{% block path %}photos{% endblock %} {% block title %}Photo Galleries{% endblock %} {% block content %} diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index d9c2177..10bf8ba 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -2,8 +2,11 @@ {# {% load markup %} #} {% block path %} - <a href="../..">photos</a> » + {{ block.super }} + » <a href="../../{{ object.gallery.id }}">{{ object.gallery.title }}</a> + » + <a href="../{{ object.id }}">{{ object.title }}</a> {% endblock %} {% block title %} |