]> git.decadent.org.uk Git - memories.git/commitdiff
If you've got it, flaunt it.
authorSimon Cozens <simon@simon-cozens.org>
Tue, 6 Feb 2007 22:22:10 +0000 (22:22 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 6 Feb 2007 22:22:10 +0000 (22:22 +0000)
git-svn-id: http://svn.simon-cozens.org/memories/trunk@7 041978f6-d955-411f-a9d7-1d8545c9c3c7

templates/photo/view
templates/static/memories.css

index b8a06bf6e72a19c8ed271a5eff59abcff40022fd..3950ce6b5a566d2d04a59d0ee988fede5c988234 100644 (file)
@@ -76,6 +76,14 @@ photo.uploader %] </a>
     [% SET request.session.scale = size %]
 </div>
 
+[% IF photo.description OR photo.copyright OR photo.license %]
+<div class="photodesc"> 
+    [% photo.description | html %] 
+    [% IF photo.copyright %] <div class="photorights"> [% photo.copyright | html %] </div> [% END %]
+    [% IF photo.license %] <div class="photolicense"> [% photo.license | html %] </div> [% END %]
+</div>
+[% END %]
+
 [% MACRO do_tab(tabname, label) BLOCK; %]
 <li>
     [% IF tab == tabname %]<a class="active">
index 45752c9a39a541ec93b80572e5ac5f3c9055c3b7..372811166dcab92731adecfaa32add0d0c1eef42 100644 (file)
@@ -88,6 +88,10 @@ p { font-family: sans-serif; }
 
 .albums { background: #ffc; padding-left: 15px; border: 1px dotted black; }
 .htmltagcloud { text-align:  center; font-family: sans-serif; }
+.photodesc { background: #fff; padding: 10px; margin: 5px 15px 5px 15px; text-align: center; }
+.photorights { font-size: 90%; padding: 10px; text-align: right; font-weight: bold; }
+.photolicense { font-size: 80%; padding: 10px; }
+
 span.tagcloud0 { font-size: 9px;}
 span.tagcloud1 { font-size: 10px;}
 span.tagcloud2 { font-size: 10px;}