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

Version Path
knitkit-2.1.15 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.14 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.13 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.12 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.11 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.10 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.9 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.8 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.7 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.6 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.5 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.4 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.3 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.2 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.1 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.1.0 app/views/menus/knitkit/_default_sub_section_menu.html.erb
knitkit-2.0.11 app/views/menus/knitkit/_default_sub_section_menu.html.erb