Ignore:
Timestamp:
May 24, 2011 12:02:41 PM (13 years ago)
Author:
zidane
Message:

add first and last element for section

File:
1 edited

Legend:

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

    r3058 r3219  
    1212                is_current      node/currentItem; 
    1313                is_in_path      node/currentParent; 
     14                is_first        repeat/node/start; 
     15                is_last         repeat/node/end; 
    1416                li_curr_class   python:is_current and 'selected' or ''; 
    1517                li_extr_class   python:(is_in_path and not is_current) and 'selected' or ''; 
     18                li_extr_class   python:is_first and 'ddmisfirst '+li_extr_class or li_extr_class; 
     19                li_extr_class   python:is_last and 'ddmislast '+li_extr_class or li_extr_class; 
    1620                li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class; 
    1721                item_type       node/normalized_portal_type | nothing; 
Note: See TracChangeset for help on using the changeset viewer.