annotate zpt/Copy of levelFormatted.zpt @ 50:8bfd713e5d99

closed: small bug in export (https://otrs.mpiwg-berlin.mpg.de/otrs/index.pl?Action=AgentTicketZoom;TicketID=38)
author dwinter
date Thu, 05 Dec 2013 13:24:43 +0100
parents 30dee40ff84b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
1 <!-- exmample for level template -->
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
2
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
3 <div class="level1" tal:repeat="level1
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
4 python:options['level1_entries']">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
5 <span class="showApproach" tal:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
6 <div class="projectsWindow">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
7 <div class="level1_projects" tal:repeat="proj
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
8 python:here.getProjectsWithTag(options['type'],here.getTitle(level1))"><a tal:attributes="href
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
9 python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a><tal:x define="person python:proj[2]"><span
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
10 class="person_projects" tal:content="person"/></tal:x></div>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
11 </div>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
12 <tal:y condition="python:len(here.getEntries(level1))>0">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
13
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
14 <div class="level2" tal:repeat="level2
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
15 python:here.getEntries(level1)">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
16 <tal:x define="subitems
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
17 python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(level2))"
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
18 condition="python:len(subitems)>0">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
19 <span class="showApproach"
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
20 tal:content="python:here.getTitle(level2) +'
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
21 ('+str(len(subitems))+')'">Lor</span>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
22 <div class="projectsWindow">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
23 <div class="level2_projects" tal:repeat="proj python:subitems">
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
24 <a tal:attributes="href python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
25 <tal:x define="person python:proj[2]"><span class="person_projects" tal:content="person"/></tal:x></div>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
26 </div>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
27
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
28 </tal:x>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
29 </div>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
30 </tal:y>
30dee40ff84b thesaurus for new version of the website
dwinter
parents:
diff changeset
31 </div>