changeset 220:81e9c8252747

getTags retruns now None if there aren't any
author dwinter
date Thu, 24 Oct 2013 14:59:22 +0200
parents 5ffb9e7167b6
children e8431f86ac70
files zpt/project/project_index_html.zpt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/project/project_index_html.zpt	Thu Oct 24 14:47:07 2013 +0200
+++ b/zpt/project/project_index_html.zpt	Thu Oct 24 14:59:22 2013 +0200
@@ -193,7 +193,7 @@
       </div>
     </div>
     <!-- sideblock -->
-	 <div class="sideblock" tal:define="tags python:here.thesaurus.getTagsAsHash(here.getId())" >
+	 <div class="sideblock" tal:define="tags python:here.thesaurus.getTagsAsHash(here.getId())" tal:condition="tags">
       <h2>Tags</h2>
       <div class="item">
       <tal:x repeat="key python:tags.keys()">