Sha256: 2e4321497280d01f5abc35358ac70c4b0d8b4edbbeeb03a9c29975f7bb603b3c

Contents?: true

Size: 859 Bytes

Versions: 44

Compression:

Stored size: 859 Bytes

Contents

<% cache_unless current_user, [current_exhibit, @page, I18n.locale] do %>
  <ol class="nav sidenav flex-column">
    <% @exhibit.feature_pages.for_locale.published.at_top_level.each do |feature_section| %>
      <li class="<%= 'active' if current_page? [spotlight, @exhibit, feature_section] %>">
        <h2 class="h6"><%= link_to_unless_current feature_section.title, [spotlight, @exhibit, feature_section] %></h2>
        <% child_pages = feature_section.child_pages.published %>

        <% if child_pages.any? %>
          <ol class="subsection">
            <% child_pages.each do |page| %>
              <li class="<%= 'active' if current_page? [spotlight, @exhibit, page] %>"><%= link_to_unless_current page.title, [spotlight, @exhibit, page] %></li>
            <% end %>
          </ol>
        <% end %>
      </li>
    <% end %>
  </ol>
<% end %>

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.3 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.2 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.1 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0 app/views/spotlight/feature_pages/_sidebar.html.erb