r10152 - mb_server/branches/TemplateToolkit/root/tag

by root-97 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

Author: acid2
Date: 2008-07-23 14:06:06 +0000 (Wed, 23 Jul 2008)
New Revision: 10152

Modified:
   mb_server/branches/TemplateToolkit/root/tag/entity-tags.tt
Log:
Fixes #3860

Modified: mb_server/branches/TemplateToolkit/root/tag/entity-tags.tt
===================================================================
--- mb_server/branches/TemplateToolkit/root/tag/entity-tags.tt 2008-07-23 14:03:19 UTC (rev 10151)
+++ mb_server/branches/TemplateToolkit/root/tag/entity-tags.tt 2008-07-23 14:06:06 UTC (rev 10152)
@@ -1,4 +1,8 @@
 [% WRAPPER "components/box.tt" header="Tags" %]
-<p>[% INCLUDE "components/entity-link.tt" %] has been tagged with the following:</p>
-[% INCLUDE "tag/cloud.tt" %]
+[%- IF tagcloud.size -%]
+  <p>[% INCLUDE "components/entity-link.tt" %] has been tagged with the following:</p>
+  [% INCLUDE "tag/cloud.tt" %]
+[%- ELSE -%]
+  <p>[% INCLUDE "components/entity-link.tt" %] has not been tagged.</p>
+[%- END -%]
 [% END %]


_______________________________________________
MusicBrainz-commits mailing list
MusicBrainz-commits@...
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-commits
LightInTheBox - Buy quality products at wholesale price!
 
Creative Commons EFF GPL LGPL
Original Design|vacubomb.com Contact Details Server Version: RELEASE-20060712