Mercurial > hg > MPIWGThesaurus
changeset 31:8bb5fef365b5
source formatting.
author | casties |
---|---|
date | Mon, 10 Jun 2013 17:38:33 +0200 |
parents | 0bad2371550e |
children | 911defd02ff8 |
files | zpt/levelFormatted.zpt |
diffstat | 1 files changed, 57 insertions(+), 74 deletions(-) [+] |
line wrap: on
line diff
--- a/zpt/levelFormatted.zpt Mon May 27 23:04:00 2013 +0200 +++ b/zpt/levelFormatted.zpt Mon Jun 10 17:38:33 2013 +0200 @@ -3,93 +3,76 @@ <tal:x tal:repeat="level1 python:options['level1_entries']"> - <ul class="foldable"> - <li class="type fold_head level_1 showApproach"><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:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span> - </li> - - <li class="li_project fold_body projectsWindow"> - <table class="items"> - <tr class="line" - tal:repeat="proj - python:here.getProjectsWithTag(options['type'],here.getTitle(level1))"> - - <tal:x > + <ul class="foldable"> + <li class="type fold_head level_1 showApproach"><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:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span> + </li> - <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> - </tr> - </table> - </li> + <li class="li_project fold_body projectsWindow"> + <table class="items"> + <tr class="line" tal:repeat="proj python:here.getProjectsWithTag(options['type'],here.getTitle(level1))"> + <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> + </tr> + </table> + </li> - <tal:y condition="python:len(here.getEntries(level1))>0"> - <tal:x tal:repeat="level2 + <tal:y condition="python:len(here.getEntries(level1))>0"> + <tal:x tal:repeat="level2 python:here.getEntries(level1)"> - <tal:x - define="subitems + <tal:x + define="subitems python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(level2))" - condition="python:len(subitems)>0"> + condition="python:len(subitems)>0"> + - - <li class="level_2 indent fold_body"> - - <div class="foldable2"> - <div 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 class="showApproach" - tal:content="python:here.getTitle(level2) +' + <li class="level_2 indent fold_body"> + + <div class="foldable2"> + <div 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 class="showApproach" tal:content="python:here.getTitle(level2) +' ('+str(len(subitems))+')'">Lor</span> -</div> - <div class="level2 fold_body2 indent li_project projectsWindow"> - <table class="items "> - <tr class="line" tal:repeat="proj python:subitems"> - <tal:x> + </div> + <div class="level2 fold_body2 indent li_project projectsWindow"> + <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 + <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> - </tr> - </table> - </div> - - </div> - </li> + 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> + </tr> + </table> + </div> + + </div> + </li> - </tal:x> - </tal:x> + </tal:x> + </tal:x> - </tal:y> - </ul> + </tal:y> + </ul> </tal:x>