Last change
on this file since 731 was
199,
checked in by chervol, 18 years ago
|
new portlets lyout, time formating updated
|
File size:
1.8 KB
|
Rev | Line | |
---|
[199] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | lang="en" |
---|
| 3 | metal:use-macro="here/main_template/macros/master" |
---|
| 4 | i18n:domain="plone"> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 8 | <div metal:fill-slot="main"> |
---|
| 9 | <tal:main-macro metal:define-macro="main" |
---|
| 10 | tal:define="utils python:modules['Products.qSiloGroup.utils']; |
---|
| 11 | silo python:utils.getCurrentFolder(context); |
---|
| 12 | default_page python:utils.getDefaultPage(silo); |
---|
| 13 | silo_dict here/getSiloNavigationDictionary; |
---|
| 14 | default_title python:silo_dict.get(default_page, {}).get('title', None); |
---|
| 15 | silo_list here/getSiloData; |
---|
| 16 | id context/getId"> |
---|
| 17 | <ul> |
---|
| 18 | <li tal:condition="default_page"> |
---|
| 19 | <div> |
---|
| 20 | <a tal:define="item_title python:default_title or default_page" |
---|
| 21 | tal:condition="default_page" |
---|
| 22 | tal:attributes="href string:${silo/absolute_url}/${default_page};" |
---|
| 23 | tal:content="item_title|default_page"> |
---|
| 24 | Item Title</a> |
---|
| 25 | </div> |
---|
| 26 | </li> |
---|
| 27 | <tal:navitem repeat="item silo_list"> |
---|
| 28 | <li tal:define="item_id item/id; |
---|
| 29 | item_title item/title" |
---|
| 30 | tal:condition="python:item_id and (item_id not in [default_page, id]) and item_title"> |
---|
| 31 | <div> |
---|
| 32 | <a tal:condition="item_title" |
---|
| 33 | tal:attributes="href python:test(item['link'], item['path'], silo.absolute_url()+'/'+item['path'])" |
---|
| 34 | tal:content="item_title|nothing"> |
---|
| 35 | Item Title</a> |
---|
| 36 | </div> |
---|
| 37 | </li> |
---|
| 38 | </tal:navitem> |
---|
| 39 | </ul> |
---|
| 40 | </tal:main-macro> |
---|
| 41 | </div> |
---|
| 42 | |
---|
| 43 | </body> |
---|
| 44 | |
---|
| 45 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.