Ignore:
Timestamp:
18 Jun 2007, 11:28:34 (18 years ago)
Author:
joachim
Message:

don't show empty actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_design/widget_portlet_actions.pt

    r1743 r1925  
    44                   context nocall:options/context_obj|here;
    55                   show_icons ds/show_icons|python:1;
    6                    show_icons python: int(show_icons);
    76                   actionitems python: here.getActionsItems(context, categories, actions_order);
    87                   base_url here/getBaseUrl"
    98                   condition="actionitems">
    10     <ul class="cpsskinsMenu">
     9    <ul class="cpsskinsMenu" tal:condition="actionitems">
    1110      <li tal:repeat="action actionitems"><a
    1211       tal:define="icon_tag action/icon_tag"
     
    1413                       class python:show_icons and icon_tag and 'noicon' or None">
    1514         <tal:block condition="python:show_icons and icon_tag"
    16            content="structure icon_tag"/>
    17          <tal:block condition="python:show_icons and not icon_tag">
     15           content="structure icon_tag"/><tal:block condition="python:show_icons and not icon_tag">
    1816           <img tal:attributes="src
    1917             string:${base_url}noicon.png;
Note: See TracChangeset for help on using the changeset viewer.