Sha256: 881db16a787c10b0d1edc7b52a8c0507d539a4a09f7de5a17ef9e8a24172f468

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

Contents

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  <%
     selected_section_parent = @website_section.nil? ? nil : @website_section.parent
  %>
  <% unless @website_sections.nil? %>
      <ul class="nav navbar-nav">
        <% @website_sections.each do |section|
          if section.display_in_menu?
            if section.allow_access?(current_user, :view)
              if (!@website_section.nil? && section.id == @website_section.id) or (!selected_section_parent.nil? and selected_section_parent.id == section.id) %>
                        <li class="active">
                    <%
                       selected_section_parent = section
                       else
                    %>
                        <li>
                    <% end %>
                    <a href="<%= section.path %>"><%= section.title %></a>
                    </li>
                <% end %>
            <% end %>
        <% end %>
      </ul>
      </div>
  <% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knitkit-3.0.0 app/views/menus/knitkit/_default_section_menu.html.erb