Sha256: 88858e54dfeb9c1932d5ccb83de5ff317c64bdd4d867d60e94c4c26daccf45ad

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

%ul.nav.nav-tabs
  
  %li{class: "#{current_page?(list_view) ? 'active' : ''}" }
    = link_to list_view do 
      %i.fa.fa-list
      %span Index
  - if new_view.present? && !new_view.blank?
    %li{class: "#{current_page?(new_view) ? 'active' : ''}" }
      = link_to new_view do 
        %i.fa.fa-plus
        %span Add New

  - if controller.action_name == "show" || controller.action_name == "edit"
    %li{class: "#{current_page?(edit_path) ? 'active' : ''}" }
      = link_to edit_path do 
        %i.fa.fa-pencil
        %span Edit

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre app/views/hatchy/admin/shared/_admin_navtabs.html.haml
hatchy-0.0.7.pre app/views/hatchy/admin/shared/_admin_navtabs.html.haml
hatchy-0.0.6.pre app/views/hatchy/admin/shared/_admin_navtabs.html.haml
hatchy-0.0.5.pre app/views/hatchy/admin/shared/_admin_navtabs.html.haml