Ignore:
Timestamp:
Feb 13, 2013 10:03:38 AM (11 years ago)
Author:
kroman0
Message:

Fixed empty class attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt

    r3220 r3627  
    66<metal:main define-macro="sections_main"> 
    77<tal:navitem repeat="node children"> 
    8 <li tal:define="show_children   node/show_children; 
    9                 children        node/children; 
    10                 item_url        node/getURL; 
    11                 item_icon       node/item_icon; 
    12                 is_current      node/currentItem; 
     8<li tal:define="is_current      node/currentItem; 
    139                is_in_path      node/currentParent; 
    1410                li_curr_class   python:is_current and 'selected' or ''; 
    1511                li_extr_class   python:(is_in_path and not is_current) and 'selected' or ''; 
    1612                li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class; 
    17                 item_type       node/normalized_portal_type | nothing; 
    1813                li_class string:${li_curr_class}${li_extr_class}; 
    19                 li_class python:children and li_class or li_class" 
    20     tal:attributes="class string:$li_class"> 
     14                li_class python:li_class or nothing" 
     15    tal:attributes="class li_class"> 
    2116 
    22     <tal:level define="show_icons view/conf/show_icons; 
    23                        a_class python:children and 'hasChildrens' or ''"> 
     17    <tal:level define="show_children node/show_children; 
     18                       children node/children; 
     19                       show_icons view/conf/show_icons; 
     20                       item_icon node/item_icon; 
     21                       item_type node/normalized_portal_type | nothing; 
     22                       a_class python:children and 'hasChildrens' or nothing"> 
    2423 
    25     <a tal:attributes="href python:item_url; 
    26                        title node/Description; 
    27                        class string:${a_class}"> 
     24    <a tal:attributes="href node/getURL; 
     25                       title node/Description|nothing; 
     26                       class a_class"> 
    2827        <img tal:condition="python: show_icons and not plonefour" 
    2928             tal:replace="structure item_icon/html_tag | nothing" /> 
Note: See TracChangeset for help on using the changeset viewer.