Sha256: ae8dc6b420e67028e54fd2f59a53ff53ffbfa20c07f64379d79b4b0e646f49fa

Contents?: true

Size: 361 Bytes

Versions: 79

Compression:

Stored size: 361 Bytes

Contents

- if can?(:index, Page)
  = tenon_menu_item item, pages_path, :active => is_active("pages"), :submenu => can?(:create, Page)
  - if can?(:create, Page)
    %ul.tenon_submenu{ :class => is_active(["pages"]) ? "#{item} active" : item }
      = link_to "New Page", new_page_path, :class => ("active" if is_active(["pages"]) && params[:action] == "new")
    .spacer

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tenon-1.1.4 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.1.3 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.1.2 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.1.1 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.76 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.75 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.74 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.73 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.72 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.71 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.70 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.69 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.68 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.67 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.66 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.65 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.64 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.63 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.62 app/views/tenon/shared/menu_items/_pages.html.haml
tenon-1.0.61 app/views/tenon/shared/menu_items/_pages.html.haml