From c3ce21b633f71c7614f0878c1076408ea33ef8fe Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 18 Feb 2008 07:54:11 -0500 Subject: restyled photos a bit; details on the right --- bn_django/photos/templates/photos/photo_detail.html | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'bn_django') diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index ac1eb3b..5d02710 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -19,10 +19,22 @@ {% block content %} {% if object %} +
+{% if object.date %} +

Photo taken {{ object.date }}{% if object.photographer %} +by {{ object.photographer }}.

+{% else %}.

+{% endif %} +{% else %} +{% if object.photographer %} +

Photo by {{ object.photographer }}.

+{% endif %} +{% endif %} +
{% if object.next %}
-








+












Next:
{{ object.next.title }} @@ -33,6 +45,7 @@ {% if object.prev %}
+



Previous:
{{ object.prev.title }} @@ -49,12 +62,6 @@

{{ object.desc }}

- {% if object.photographer %} -

Photo by {{ object.photographer }}.

- {% endif %} - {% if object.date %} -

Photo taken {{ object.date }}.

- {% endif %} {% if object.extra %}

More information

{{ object.extra }}

-- cgit v1.2.3