28
|
1 <!-- exmample for level template -->
|
|
2
|
|
3 <div class="level1" tal:repeat="level1
|
|
4 python:options['level1_entries']">
|
|
5 <span class="showApproach" tal:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span>
|
|
6 <div class="projectsWindow">
|
|
7 <div class="level1_projects" tal:repeat="proj
|
|
8 python:here.getProjectsWithTag(options['type'],here.getTitle(level1))"><a tal:attributes="href
|
|
9 python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a><tal:x define="person python:proj[2]"><span
|
|
10 class="person_projects" tal:content="person"/></tal:x></div>
|
|
11 </div>
|
|
12 <tal:y condition="python:len(here.getEntries(level1))>0">
|
|
13
|
|
14 <div class="level2" tal:repeat="level2
|
|
15 python:here.getEntries(level1)">
|
|
16 <tal:x define="subitems
|
|
17 python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(level2))"
|
|
18 condition="python:len(subitems)>0">
|
|
19 <span class="showApproach"
|
|
20 tal:content="python:here.getTitle(level2) +'
|
|
21 ('+str(len(subitems))+')'">Lor</span>
|
|
22 <div class="projectsWindow">
|
|
23 <div class="level2_projects" tal:repeat="proj python:subitems">
|
|
24 <a tal:attributes="href python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a>
|
|
25 <tal:x define="person python:proj[2]"><span class="person_projects" tal:content="person"/></tal:x></div>
|
|
26 </div>
|
|
27
|
|
28 </tal:x>
|
|
29 </div>
|
|
30 </tal:y>
|
|
31 </div> |