Sha256: b0628d442f620835d2ce085bc673d146420fd370d6e07c442ef403d26e749640

Contents?: true

Size: 392 Bytes

Versions: 79

Compression:

Stored size: 392 Bytes

Contents

- if can?(:index, Gallery)
  = tenon_menu_item item, galleries_path, :active => is_active("galleries"), :submenu => can?(:create, Gallery)
  - if can?(:create, Gallery)
    %ul.tenon_submenu{ :class => is_active(["galleries"]) ? "#{item} active" : item }
      = link_to "New Gallery", new_gallery_path, :class => ("active" if is_active(["galleries"]) && 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/_galleries.html.haml
tenon-1.1.3 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.1.2 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.1.1 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.76 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.75 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.74 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.73 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.72 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.71 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.70 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.69 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.68 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.67 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.66 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.65 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.64 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.63 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.62 app/views/tenon/shared/menu_items/_galleries.html.haml
tenon-1.0.61 app/views/tenon/shared/menu_items/_galleries.html.haml