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

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

alteração no layout e na instalação

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