From 918a663e09e84b36eca886116535e7150ef0d896 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 1 Jun 2007 04:49:58 -0400 Subject: gallery listing as a table --- .../photos/templates/photos/gallery_list.html | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'bn_django/photos') diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html index b709092..39cb106 100644 --- a/bn_django/photos/templates/photos/gallery_list.html +++ b/bn_django/photos/templates/photos/gallery_list.html @@ -5,27 +5,28 @@ {% block content %} {% if object_list %} -
-
+ {% for item in object_list %} -
-      +
+ {% endfor %} - - +
{% if item.first %} {{ item.first.title }} {% else %} - No photo available + (No photo available) {% endif %} - -

  {{ item.title }}

-



+
+

{{ item.title }}

+
+ {{ item.photo_set.count }} photo{{ item.photo_set.count|pluralize}} + starting {{ item.first.date }} +
{% else %} -

No galleries have been set up yet.

+

No galleries have been set up yet.

{% endif %} -- cgit v1.2.3