[% INCLUDE header %] [% SET tab = request.params.active || "comment" %] [% SET url = base _ "/photo/view/" _ photo.id; %]
[% IF prev %] << [% prev %] [% END %]

[% photo.title %]

[% IF next %] [% next %] >> [% END %] [% IF request.user == photo.uploader %]

Delete this photo

[% END %]
[% IF photo.albums %] In albums: [% FOR album = photo.albums; %] [%album.name%] ([%album.photos.size%]) [% ";" UNLESS album == photo.albums.last %] [% END %]
[% END %] Photo shot on [% photo.shot.ymd %]
Uploaded by [% photo.uploader %]

[% photo.hit_count %] view[%IF photo.hit_count > 1%]s[%END%]
[% SET tagset = {}; FOR tag = photo.tags; SET name = tag.name; tagset.$name = tag.taggings.size; END; SET sorted = tagset.nsort.reverse; %] [% SET counter = 0; FOR tag = sorted; counter = counter + 1; IF tagset.$tag > 1; ""; tag; " ("; tagset.$tag; ")"; ELSE; tag; IF counter > 20; "..."; LAST; END; END; ", " UNLESS tag == sorted.last; END %]
[% PROCESS sized %] [% IF photo.description OR photo.copyright OR photo.license %]
[% photo.description | html %] [% IF photo.copyright %]
[% photo.copyright | html %]
[% END %] [% IF photo.license %]
[% photo.license | html %]
[% END %]
[% END %] [% MACRO do_tab(tabname, label) BLOCK; %]
  • [%label%]
  • [% END %]
    [% INCLUDE comment %]
    [% INCLUDE footer; %]