]> git.decadent.org.uk Git - memories.git/commitdiff
Arrayize tags with only one photo
authorSimon Cozens <simon@simon-cozens.org>
Sat, 24 Mar 2007 16:13:31 +0000 (16:13 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 24 Mar 2007 16:13:31 +0000 (16:13 +0000)
git-svn-id: http://svn.simon-cozens.org/memories/trunk@52 041978f6-d955-411f-a9d7-1d8545c9c3c7

templates/tag/list

index 1a9706f84146b8c94c8b62209379e1837403b166..fea4e0d1d4a90b63d228571eb19c55ac8d70f990 100644 (file)
@@ -10,7 +10,7 @@
         <table><tr> <td width="100%" class="taglistheader">
         <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%]">