Mercurial > hg > MPIWGThesaurus
changeset 34:0b58b298ef44
small change
author | casties |
---|---|
date | Wed, 12 Jun 2013 16:06:57 +0200 |
parents | 65132c9c5c09 |
children | cfb5bb05253a |
files | zpt/levelFormatted.zpt |
diffstat | 1 files changed, 15 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/levelFormatted.zpt Wed Jun 12 15:34:41 2013 +0200 +++ b/zpt/levelFormatted.zpt Wed Jun 12 16:06:57 2013 +0200 @@ -1,27 +1,22 @@ <!-- 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"> + <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 class="linklike" tal:content="python:here.getTitle(level1) +' ('+ str(len(level1entries)) +')' ">Lorem</span> + <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 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> + <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> @@ -39,14 +34,11 @@ <div class="level2 fold_body2"> <table class="items"> <tr class="line" tal:repeat="proj python:subitems"> - <tal:x> - <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> <tal:x define="person python:proj[2]"> - <span class="person_projects" tal:content="person" /> - </tal:x></td> - </tal:x> + <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>