]> git.decadent.org.uk Git - memories.git/blobdiff - templates/tag/list
Merge commit 'trunk'
[memories.git] / templates / tag / list
index 9a7361a61d709343e7672e8ad8266765b43bfb1c..fea4e0d1d4a90b63d228571eb19c55ac8d70f990 100644 (file)
@@ -8,13 +8,13 @@
     [% FOR tag = minilist %]
         <td>
         <table><tr> <td width="100%" class="taglistheader">
-        <a href="[%base%]/tag/view/[%tag.name |html|uri%]">[% tag %]</a>
+        <a href="[%base%]/tag/view/[%tag.name |html%]">[% tag %]</a>
         </td></tr>
-        [% SET photos = tag.photos %]
+        [% IF tag.photos.isa("Memories::Photo"); SET photos = [ tag.photos ]; ELSE; SET photos = tag.photos; END %]
         [% IF photos.last %]
         <tr><td>
-        <a href="[%base%]/tag/view/[%tag.name |html|uri%]">
-            <img src="[% photos.last.thumb_url |uri%]">
+        <a href="[%base%]/tag/view/[%tag.name |html%]">
+            <img src="[% photos.last.thumb_url%]">
         </a>
         </td></tr>
         <tr><td class="info">