Changeset 3058 in products


Ignore:
Timestamp:
Dec 29, 2010 10:00:40 AM (13 years ago)
Author:
gvizdyk
Message:

cleared unnecessary classes

File:
1 edited

Legend:

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

    r2834 r3058  
    1212                is_current      node/currentItem; 
    1313                is_in_path      node/currentParent; 
    14                 li_class        python:is_current and ' globalSectionsCurrentNode selected' or ''; 
    15                 li_extr_class   python:is_in_path and ' globalSectionsItemInPath' or ''; 
    16                 li_extr_class   python:(is_in_path and not is_current) and li_extr_class + ' selected' or li_extr_class; 
    17                 li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + ' plain' or li_extr_class; 
    18                 li_folder_class python:show_children and ' globalSectionsFolderish' or ''; 
     14                li_curr_class   python:is_current and 'selected' or ''; 
     15                li_extr_class   python:(is_in_path and not is_current) and 'selected' or ''; 
     16                li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class; 
    1917                item_type       node/normalized_portal_type | nothing; 
    20                 li_class string:globalSectionsItem visualNoMarker${li_class}${li_extr_class}${li_folder_class}; 
    21                 li_class python:children and li_class+' hasChildrens' or li_class" 
    22     tal:attributes="class li_class"> 
     18                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"> 
    2321 
    2422    <tal:level define="show_icons view/conf/show_icons; 
    25                        item_class string:state-${node/normalized_review_state}"> 
     23                       a_class python:children and 'hasChildrens' or ''"> 
    2624 
    2725    <a tal:attributes="href python:item_url; 
    2826                       title node/Description; 
    29                        class string:$item_class${li_class}${li_extr_class}${li_folder_class}"> 
     27                       class string:${a_class}"> 
    3028        <img tal:condition="python: show_icons and not plonefour" 
    3129             tal:replace="structure item_icon/html_tag | nothing" /> 
     
    3432    </a> 
    3533 
    36     <ul tal:attributes="class python:'globalSections globalSectionsLevel'+str(level)" 
     34    <ul tal:attributes="class python:'globalSectionsLevel'+str(level)" 
    3735        tal:condition="python: len(children) > 0 and show_children"> 
    3836        <li tal:replace="structure python:view.recurse(children=children, level=level+1)"> 
Note: See TracChangeset for help on using the changeset viewer.