diff options
author | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-02-18 07:54:11 -0500 |
---|---|---|
committer | Bryan Newbold <bnewbold@charm.mit.edu> | 2008-02-18 07:54:11 -0500 |
commit | c3ce21b633f71c7614f0878c1076408ea33ef8fe (patch) | |
tree | 0c92ad8d1eca306a129ab277a17ca8e057ccde96 /bn_django | |
parent | 1a653bbd06da2b45aea0377bcb55d685b82cc986 (diff) | |
download | bnewnet-c3ce21b633f71c7614f0878c1076408ea33ef8fe.tar.gz bnewnet-c3ce21b633f71c7614f0878c1076408ea33ef8fe.zip |
restyled photos a bit; details on the right
Diffstat (limited to 'bn_django')
-rw-r--r-- | bn_django/photos/templates/photos/photo_detail.html | 21 |
1 files changed, 14 insertions, 7 deletions
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 %} +<div class="right_stuff"> +{% if object.date %} +<p class="photodate">Photo taken {{ object.date }}{% if object.photographer %} +by {{ object.photographer }}.</p> +{% else %}.</p> +{% endif %} +{% else %} +{% if object.photographer %} +<p class="photographer">Photo by {{ object.photographer }}.</p> +{% endif %} +{% endif %} +</div> {% if object.next %} <div class="right_stuff" style="clear: right;"> <div class="small-image-box"> -<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> +<br /><br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <a href="../{{ object.next.id }}/"> Next:<br/> <img src="{{ object.next.thumburl}}" alt="{{ object.next.title }}"/> @@ -33,6 +45,7 @@ {% if object.prev %} <div class="right_stuff" style="clear: right;"> <div class="small-image-box"> +<br /> <br /><br /> <br /> <a href="../{{ object.prev.id }}/"> Previous:<br /> <img src="{{ object.prev.thumburl}}" alt="{{ object.prev.title }}"/> @@ -49,12 +62,6 @@ </a> <div> <p class="photodesc"> {{ object.desc }} </p> - {% if object.photographer %} - <p class="photographer">Photo by {{ object.photographer }}.</p> - {% endif %} - {% if object.date %} - <p class="photodate">Photo taken {{ object.date }}.</p> - {% endif %} {% if object.extra %} <h3 class="photoextra">More information</h3> <p class="photoextra">{{ object.extra }}</p> |