diff options
author | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-02-10 23:53:40 -0500 |
---|---|---|
committer | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-02-10 23:53:40 -0500 |
commit | f240080cefc05855c3836c284cc2f619117d1f3d (patch) | |
tree | 79cacac4118c2b7d5204f0730880a7ff98bf764d /bn_django/photos/templates | |
parent | f6b6a7912dc984b7c9a0f74631f51a3ab44c15af (diff) | |
download | bnewnet-f240080cefc05855c3836c284cc2f619117d1f3d.tar.gz bnewnet-f240080cefc05855c3836c284cc2f619117d1f3d.zip |
switched to slugs for photo sets; also call them sets. TODO: rename galleries sets in code
Diffstat (limited to 'bn_django/photos/templates')
-rw-r--r-- | bn_django/photos/templates/photos/gallery_detail.html | 4 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/gallery_list.html | 6 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/photo_detail.html | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html index ef08807..2de76d7 100644 --- a/bn_django/photos/templates/photos/gallery_detail.html +++ b/bn_django/photos/templates/photos/gallery_detail.html @@ -4,10 +4,10 @@ {{ block.super }} {% if object %} » - <a href="../{{ object.id }}">{{ object.title }}</a> + <a href="../{{ object.slug }}/">{{ object.title }}</a> {% endif %} {% endblock %} {% block title %} -{% if object %} Gallery: {{ object.title }} {% endif %} +{% if object %}Photo Set: {{ object.title }} {% endif %} {% endblock %} {% block content %} {% if object %} <br /> diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html index bb4e797..1757a22 100644 --- a/bn_django/photos/templates/photos/gallery_list.html +++ b/bn_django/photos/templates/photos/gallery_list.html @@ -1,7 +1,7 @@ {% extends "photos/base.html" %} {# {% load markup %} #} -{% block title %}Photo Galleries{% endblock %} +{% block title %}Photo Sets{% endblock %} {% block content %} {% if object_list %} @@ -9,7 +9,7 @@ {% for item in object_list %} <tr> <td class="photo_thumb"> - <a href="{{ item.id }}/"> + <a href="{{ item.slug }}/"> {% if item.first %} <img src="{{ item.first.thumburl }}" alt="{{ item.first.title }}" /> @@ -18,7 +18,7 @@ {% endif %} </a> </td><td class="gallery_title"> - <h3><a href="{{ item.id }}/">{{ item.title }}</a></h3> + <h3><a href="{{ item.slug }}/">{{ item.title }}</a></h3> <br /> {{ item.photo_set.count }} photo{{ item.photo_set.count|pluralize}} {% if item.first.date %} diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index 3b582b1..ac1eb3b 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -5,7 +5,7 @@ {% block path %} {{ block.super }} » - <a href="../../{{ object.gallery.id }}">{{ object.gallery.title }}</a> + <a href="../../{{ object.gallery.slug }}/">{{ object.gallery.title }}</a> » <a href="../{{ object.id }}">{{ object.title }}</a> {% endblock %} |