Sha256: 8cbc46b7dccacfe5eb315e183db450a834b5a81d68c24815377721ae34adb9ed
Contents?: true
Size: 1.96 KB
Versions: 4
Compression:
Stored size: 1.96 KB
Contents
<%= yield :sidebar_before %> <% if logged_in? %> <ul class="sidebar-nav"> <% if can? :read, Guts::Type %> <li class="<%= 'active' if menu_active? :types %>"> <%= link_to 'Content Types', types_path %> </li> <% end %> <% if can? :read, Guts::Category %> <li class="<%= 'active' if menu_active? :categories %>"> <%= link_to 'Categories', categories_path %> </li> <% end %> <% if can? :read, Guts::Navigation %> <li class="<%= 'active' if menu_active? :navigation, false %>"> <%= link_to 'Navigation', navigations_path %> </li> <% end %> <% if can? :read, Guts::Medium %> <li class="<%= 'active' if menu_active? :media %>"> <%= link_to 'Media', media_path %> </li> <% end %> <% if can? :read, Guts::User %> <li class="<%= 'active' if menu_active? :users %>"> <%= link_to 'Users', users_path %> </li> <% end %> <% if can? :read, Guts::Group %> <li class="<%= 'active' if menu_active? :groups %>"> <%= link_to 'User Groups', groups_path %> </li> <% end %> <li> </li> <% if can? :read, Guts::Content %> <% Guts::Type.all.each do |type| %> <li class="<%= 'active' if menu_active?(:contents) and @type == type %>"> <%= link_to type.title.pluralize(2), contents_path(type: type.slug) %> </li> <% end %> <% end %> <li> </li> <%= yield :menu_links %> <% if can? :read, Guts::Option %> <li class="<%= 'active' if menu_active? :options %>"> <%= link_to 'Options', options_path %> </li> <% end %> <% if can? :read, Guts::Site %> <li class="<%= 'active' if menu_active? :sites %>"> <%= link_to 'Sites', sites_path %> </li> <% end %> <li> </li> <li> <a href="<%= destroy_session_path %>">Log out <small><%= current_user.name %></small></a> </li> </ul> <% end %> <%= yield :sidebar_after %>
Version data entries
4 entries across 4 versions & 1 rubygems