source: publico/ILPortal/trunk/skins/ILPortal_public/portlet_navtree_macro.pt @ 1014

Última Alteração nesse arquivo desde 1014 foi 1014, incluída por paulovieira, 14 anos atrás

adicionado external Method para criação de pastas

File size: 1.8 KB
Linha 
1<metal:main define-macro="nav_main">
2<tal:navitem repeat="item children">
3
4<li class="navTreeItem visualNoMarker"
5    tal:define="parent_shows_children show_children|nothing;
6                children item/children|nothing;
7                cur_item item/currentItem;"
8    tal:condition="python: (not item['no_display']) and (cur_item or parent_shows_children or children)">
9
10    <tal:level define="item_type_class     python: 'contenttype-' + normalizeString(item['portal_type']);
11                       item_wf_state_class python: 'state-' + normalizeString(item['review_state']);
12                       ">
13
14    <div tal:attributes="class item_type_class">
15        <a tal:condition="cur_item"
16           tal:attributes="href item/absolute_url;
17                           title item/Description|nothing;
18                           class string: $item_wf_state_class navTreeCurrentItem visualIconPadding"
19            tal:content="item/Title|nothing">
20            Selected Item Title</a>
21        <tal:children condition="python: parent_shows_children or children">
22        <a tal:condition="not: cur_item"
23           tal:attributes="href item/absolute_url;
24                           title item/Description|nothing;
25                           class string: $item_wf_state_class visualIconPadding;"
26            tal:content="item/Title|nothing">
27            Unselected Item Title</a>
28        </tal:children>
29    </div>
30
31    <ul tal:attributes="class python:'navTree navTreeLevel'+str(level)"
32        tal:define="show_children item/show_children| python:True;
33                    level python:level+1;"
34        tal:condition="python: (show_children or isNaviTree) and children">
35        <metal:recurse use-macro="here/portlet_navtree_macro/macros/nav_main"/>
36    </ul>
37    </tal:level>
38</li>
39</tal:navitem>
40</metal:main>
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.