Mercurial > hg > MPIWGThesaurus
view zpt/levelFormatted.zpt @ 36:e13200d8d473
getTags retruns now None if there aren't any
author | dwinter |
---|---|
date | Thu, 24 Oct 2013 14:58:45 +0200 |
parents | cfb5bb05253a |
children | ca608b31ec8d |
line wrap: on
line source
<!-- level template --> <tal:x tal:repeat="level1 python:options['level1_entries']"> <ul class="foldable" tal:define="level1entries python:here.getProjectsWithTag(options['type'],here.getTitle(level1))" tal:condition="level1entries"> <li class="fold_head level_1"> <h3> <img class="fold_open" tal:attributes="src python:root.absolute_url()+'/www/images/foldout_open.png'" alt="" /><img class="fold_closed" tal:attributes="src python:root.absolute_url()+'/www/images/foldout_closed.png'" alt=""> <span tal:attributes="id python:here.thes_quote(here.getTitle(level1))" class="linklike" tal:content="python:here.getTitle(level1) +' ('+ str(len(level1entries)) +')' ">Lorem</span> </h3> </li> <li class="fold_body"> <table class="items"> <tr class="line" tal:repeat="proj level1entries"> <td><a tal:attributes="href python:proj[0]"><img class="thumb" tal:define="imgUrl python:proj[3]" tal:condition="imgUrl" tal:attributes="src imgUrl" alt="" /></a></td> <td><a tal:condition="proj" tal:attributes="href python:proj[0]" tal:content="python:proj[1]">my proj</a>; <span class="person_projects" tal:define="person python:proj[2]" tal:content="person" /></td> </tr> </table> </li> <tal:x tal:define="level2entries python:here.getEntries(level1)" tal:repeat="proj level2entries"> <tal:x tal:define="subitems python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(proj))" tal:condition="subitems"> <li class="level_2 fold_body"> <div class="foldable2"> <h3 class="fold_head2"> <img class="fold_open" tal:attributes="src python:root.absolute_url()+'/www/images/foldout_open.png'" alt="" /><img class="fold_closed" tal:attributes="src python:root.absolute_url()+'/www/images/foldout_closed.png'" alt=""> <span tal:attributes="id python:here.thes_quote((here.getTitle(level1)+'_'+here.getTitle(proj)))" class="linklike" tal:content="python:here.getTitle(proj)+' ('+str(len(subitems))+')'">Lor</span> </h3> <div class="level2 fold_body2"> <table class="items"> <tr class="line" tal:repeat="proj python:subitems"> <td><a tal:attributes="href python:proj[0]"><img class="thumb" tal:define="imgUrl python:proj[3]" tal:condition="imgUrl" tal:attributes="src imgUrl" src="" alt="" /></a></td> <td><a tal:condition="python:proj!=None" tal:attributes="href python:proj[0]"><span tal:replace="python:proj[1]">my proj</span></a>; <span class="person_projects" tal:define="person python:proj[2]" tal:content="person" /></td> </tr> </table> </div> </div> </li> </tal:x> </tal:x> </ul> </tal:x>