]> git.decadent.org.uk Git - memories.git/blobdiff - templates/photo/view
Merge commit 'Memories as 1.3'
[memories.git] / templates / photo / view
index 74f352ac46f8b8228a562ae291f4ab676274ee4a..b8a06bf6e72a19c8ed271a5eff59abcff40022fd 100644 (file)
@@ -4,7 +4,13 @@
 <table width="100%">
     <tr valign="top">
     <td width="70%">
+    [% IF prev %]
+        <small><a href="[%base%]/photo/view/[%prev.id%]">&lt;&lt; [% prev %]</a></small>
+    [% END %]
 <h1>[% photo.title %]</h1>
+    [% IF next %]
+        <small><a href="[%base%]/photo/view/[%next.id%]"> [% next %] &gt;&gt;</a></small>
+    [% END %]
 [% IF request.user == photo.uploader %]
     <p><a href="[%base%]/photo/delete/[%photo.id%]">Delete this
     photo</a></p>
@@ -57,6 +63,8 @@ photo.uploader %] </a>
         [% IF photo.is_bigger(sizes.$i);  %]
             [% IF i == size %]
                 [% sizes.$i %]
+            [% ELSIF sizes.$i == "full" %]
+                <a href="[%photo.path("url")%]">full</a>
             [% ELSE %]
                 <a href="[%url%]?scale=[% i %]&active=[%tab%]">[% sizes.$i %]</a>
             [% END %]
@@ -81,11 +89,13 @@ photo.uploader %] </a>
     [%do_tab("comment", "Comments") %]
     [%do_tab("exif", "Photo info") %]
     [%do_tab("tagedit", "Edit tags") %]
+    [%do_tab("similar", "Similar photos") %]
 </ul>
 <div id="content">
 [%
 IF request.params.active == "tagedit"; INCLUDE tagedit; 
 ELSIF request.params.active == "exif"; INCLUDE exif;
+ELSIF request.params.active == "similar"; INCLUDE similar;
 ELSE;                                  INCLUDE comment; END;
 %]
 </div>