</form>
[% END %]
</td>
-<td align="right" class="tagbrowse">
-[% FOR tag = photo.tags;
- "<a href=\""; base;"/tag/view/";tag.name | html | uri;"\">";
- tag;
- "</a> (";
- tag.taggings.size; ")";
- ", " UNLESS tag == photo.tags.last;
-END %]
-</td>
-</tr>
-<tr>
-<td>
+<td align="right">
[% IF photo.albums %]
In albums:
[% FOR album = photo.albums; %]
<a href="[%base%]/album/view/[%album.id%]">[%album.name%]</a> ([%album.photos.size%])
[% ";" UNLESS album == photo.albums.last %]
[% END %]
+<br>
[% END %]
-
-</td>
-<td align="right" class="tagbrowse"><small>
+<small>
<i>Photo shot on [% photo.shot.ymd %] </i> <br>
Uploaded by <a href="[%base%]/user/view/[%photo.uploader.id%]"> [%
photo.uploader %] </a>
</small></td>
</tr>
</table>
+
+<div class="tagbrowse smaller">
+[% 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;
+ "<a href=\""; base;"/tag/view/";tag | html | uri;"\">";
+ tag;
+ "</a> (";
+ tagset.$tag; ")";
+ ELSE;
+ tag;
+ IF counter > 20; "..."; LAST; END;
+ END;
+ ", " UNLESS tag == sorted.last;
+END %]
+</div>
+
<div class="photoview">
[% SET sizes = request.config.sizes %]
[% IF request.params.exists("scale") %]
.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; }
+.smaller { font-size: 80% }
span.tagcloud0 { font-size: 9px;}
span.tagcloud1 { font-size: 10px;}