diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-02-24 16:59:31 -0800 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-02-24 16:59:31 -0800 |
commit | d338fd66b3b401b75d890a4838df7edd9b08c956 (patch) | |
tree | 80bf4639c63dc81e5d2438c92dd599d02bafcf57 /bn_django/photos | |
parent | 2f81eff5ea7c0c13ab3028cee35b591f56d76e2a (diff) | |
download | bnewnet-d338fd66b3b401b75d890a4838df7edd9b08c956.tar.gz bnewnet-d338fd66b3b401b75d890a4838df7edd9b08c956.zip |
fixed path inheritence for photos section
Diffstat (limited to 'bn_django/photos')
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 %} |