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