Sha256: 9f37ea2c4edd4d5da13d4a2a893101feb7bf319ba732a0f597f622f3bfc00182
Contents?: true
Size: 1.25 KB
Versions: 17
Compression:
Stored size: 1.25 KB
Contents
<%if !menu_items.nil? && menu_items.count > 0%> <div id="side_menu_container"> <ul id="side_menu"> <% menu_items.each do |menu_item| if menu_item.allow_access?(@current_user, :view) if menu_item_selected(menu_item) %> <li class="selected"> <% selected_menu_item = menu_item else %> <li> <% end %> <a href="<%= menu_item.path %>"><span><%= menu_item.title %></span></a> </li> <% unless selected_menu_item.nil? %> <% unless selected_menu_item.positioned_children.nil? %> <ul class="side_menu_children"> <% selected_menu_item.positioned_children.each do |child_menu_item| if child_menu_item.allow_access?(@current_user, :view) if menu_item_selected(child_menu_item) %> <li class="selected"> <% else %> <li> <% end %> <a href="<%= child_menu_item.path %>"><span><%= child_menu_item.title %></span></a> </li> <% end %> <% end %> </ul> <% end selected_menu_item = nil end %> <% end %> <% end %> </ul> </div> <%end%>
Version data entries
17 entries across 17 versions & 1 rubygems