diff options
Diffstat (limited to 'bn_django/photos/templates/photos/gallery_detail.html')
-rw-r--r-- | bn_django/photos/templates/photos/gallery_detail.html | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html index da374b1..ef08807 100644 --- a/bn_django/photos/templates/photos/gallery_detail.html +++ b/bn_django/photos/templates/photos/gallery_detail.html @@ -1,44 +1,30 @@ {% extends "photos/base.html" %} {# {% load markup %} #} - {% block path %} {{ block.super }} {% if object %} » <a href="../{{ object.id }}">{{ object.title }}</a> -{% endif %} -{% endblock %} - +{% endif %} {% endblock %} {% block title %} -{% if object %} -Gallery: {{ object.title }} -{% endif %} +{% if object %} Gallery: {{ object.title }} {% endif %} {% endblock %} - {% block content %} -{% if object %} -<br /> +{% if object %} <br /> {% if object.photo_set.count %} <table width="100%" class="thumbs"> -{% for item in object.photo_set.all %} - {% cycle <tr/>, , , %} +{% for item in object.photo_set.all %} {% cycle <tr/>, , , %} <td class="photo_thumb"> <a href="../detail/{{ item.id }}"> <img src="{{ item.thumburl }}" alt="{{ item.title }}" /> - <!--<a href="../detail/{{ item.id }}" class="caption">{{ item.title }}</a> -</a> --> - </td> - -{% endfor %} + </td> {% endfor %} </table> - {% else %} <p>There are no photos in this gallery. If you just uploaded a batch of photos, try hitting your browser's reload button to see if they -show up.</p> -{% endif %} - +show up.</p> {% endif %} + <!-- {% if not user.is_anonymous %} <p> @@ -55,9 +41,5 @@ show up.</p> </p> {% endif %} --> - -{% else %} -<p>This is not the gallery you are looking for.</p> -{% endif %} - +{% else %} <p>This is not the gallery you are looking for.</p> {% endif %} {% endblock %} |