Sha256: 39191492e04f224c840bf074ba0df1e8b4365f561a7a6766d355bc7717b29ecb

Contents?: true

Size: 659 Bytes

Versions: 79

Compression:

Stored size: 659 Bytes

Contents

- if can?(:index, Post)
  = tenon_menu_item item, posts_path, :active => is_active(["posts", "post_categories"]), :submenu => can?(:create, Post) || can?(:index, PostCategory)
  - if can?(:create, Post) || can?(:index, PostCategory)
    %ul.tenon_submenu{ :class => is_active(["posts", "post_categories"]) ? "#{item} active" : item }
      = link_to "New Post", new_post_path, :class => ("active" if params[:controller] == "tenon/posts" && params[:action] == "new") if can?(:create, Post)
      = link_to "Post Categories", post_categories_path, :class => ("active" if params[:controller] == "tenon/post_categories") if can?(:index, PostCategory)
    .spacer

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
tenon-1.0.18 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.17 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.16 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.15 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.14 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.13 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.12 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.11 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.10 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.9 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.8 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.7 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.6 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.5 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.4 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.3 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.2 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0.1 app/views/tenon/shared/menu_items/_posts.html.haml
tenon-1.0 app/views/tenon/shared/menu_items/_posts.html.haml