Sha256: b841d23f77cf083bfd5f6163fe536c0839870efb85478e9300c31125e103503b

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

- active = current_page?(item.path) || item.section_name.to_s == controller_name
%li{class: active && 'active'}
  = link_to item.path do
    %i{class: item.icon}
     
    = item.name.html_safe
    - if item.show_menu_counter? && item.counter
       
      %span.badge.pull-right
        = item.counter.call

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coalla-cms-0.7.0.0 app/views/admin/common/_menu_section.haml
coalla-cms-0.6.1.1 app/views/admin/common/_menu_section.haml
coalla-cms-0.6.0.9 app/views/admin/common/_menu_section.haml