Sha256: a445e2dceeea608e219d2b9fbdc281387ab47f077dbc1ac1e28213df68771f51
Contents?: true
Size: 1.67 KB
Versions: 17
Compression:
Stored size: 1.67 KB
Contents
<% selected_section_parent = @website_section.nil? ? nil : @website_section.parent %> <% unless section.nil? %> <% section = section.root? ? section : section.root %> <% unless section.positioned_children.empty? %> <div id="side_menu_container"> <ul id="side_menu"> <% section.positioned_children.each do |child_section| if child_section.in_menu if child_section.allow_access?(@current_user, :view) if (!@website_section.nil? && child_section.id == @website_section.id) or (!selected_section_parent.nil? and selected_section_parent.id == child_section.id) %> <li class="selected"> <% selected_section = child_section else %> <li> <% end %> <a href="<%= child_section.path %>"><span><%= child_section.title %></span></a> </li> <% end %> <% end %> <% if !selected_section.nil? and !selected_section.children.empty? %> <ul class="side_menu_children"> <% selected_section.positioned_children.each do |child_section| %> <% if !@website_section.nil? && child_section.id == @website_section.id %> <li class="selected"> <% else %> <li> <% end %> <a href="<%= child_section.path %>"><span><%= child_section.title %></span></a> </li> <% end %> </ul> <% selected_section = nil end %> <% end %> </ul> </div> <% end %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems