<table width="100%">
<tr valign="top">
<td width="70%">
+ [% IF prev %]
+ <small><a href="[%base%]/photo/view/[%prev.id%]"><< [% prev %]</a></small>
+ [% END %]
<h1>[% photo.title %]</h1>
+ [% IF next %]
+ <small><a href="[%base%]/photo/view/[%next.id%]"> [% next %] >></a></small>
+ [% END %]
[% IF request.user == photo.uploader %]
<p><a href="[%base%]/photo/delete/[%photo.id%]">Delete this
photo</a></p>
[% 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 %]
[%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>