From d338fd66b3b401b75d890a4838df7edd9b08c956 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 24 Feb 2007 16:59:31 -0800 Subject: fixed path inheritence for photos section --- bn_django/photos/templates/photos/base.html | 4 ++++ bn_django/photos/templates/photos/gallery_detail.html | 4 ++-- bn_django/photos/templates/photos/gallery_list.html | 1 - bn_django/photos/templates/photos/photo_detail.html | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) (limited to 'bn_django') 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 %} + photos +{% 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 %} - photos » +{{ block.super }} {% if object %} + » {{ object.title }} {% endif %} {% endblock %} @@ -20,7 +21,6 @@ Gallery: {{ object.title }} {% if object.photo_set.count %} {% for item in object.photo_set.all %} - photos » + {{ block.super }} + » {{ object.gallery.title }} + » + {{ object.title }} {% endblock %} {% block title %} -- cgit v1.2.3