Sha256: 1efaa499c7593279a63a4266b49f3c42e0f75272392b6f238b53138ed376c545
Contents?: true
Size: 677 Bytes
Versions: 24
Compression:
Stored size: 677 Bytes
Contents
- if can?(:index, Post) = forge_menu_item item, forge_posts_path, :active => is_active(["posts", "post_categories"]), :submenu => can?(:create, Post) || can?(:index, PostCategory) - if can?(:create, Post) || can?(:index, PostCategory) %ul.forge_submenu{ :class => is_active(["posts", "post_categories"]) ? "#{item} active" : item } = link_to "New Post", new_forge_post_path, :class => ("active" if params[:controller] == "forge/posts" && params[:action] == "new") if can?(:create, Post) = link_to "Post Categories", forge_post_categories_path, :class => ("active" if params[:controller] == "forge/post_categories") if can?(:index, PostCategory) .spacer
Version data entries
24 entries across 24 versions & 1 rubygems