source: WAeUP_SRP/trunk/skins/waeup_design/widget_portlet_actions.pt @ 14562

Last change on this file since 14562 was 1925, checked in by joachim, 18 years ago

don't show empty actions

File size: 1.1 KB
Line 
1<tal:block define="ds options/datastructure;
2                   categories ds/categories;
3                   actions_order ds/actions_order|python:[];
4                   context nocall:options/context_obj|here;
5                   show_icons ds/show_icons|python:1;
6                   actionitems python: here.getActionsItems(context, categories, actions_order);
7                   base_url here/getBaseUrl"
8                   condition="actionitems">
9    <ul class="cpsskinsMenu" tal:condition="actionitems">
10      <li tal:repeat="action actionitems"><a
11       tal:define="icon_tag action/icon_tag"
12       tal:attributes="href action/url;
13                       class python:show_icons and icon_tag and 'noicon' or None">
14         <tal:block condition="python:show_icons and icon_tag"
15           content="structure icon_tag"/><tal:block condition="python:show_icons and not icon_tag">
16           <img tal:attributes="src
17             string:${base_url}noicon.png;
18             alt action/title" />
19         </tal:block>
20         <tal:block i18n:translate="" content="action/title" />
21       </a>
22       </li>
23    </ul>
24</tal:block>
Note: See TracBrowser for help on using the repository browser.