Sha256: f2f86bd6a685b9463027bc9c1eace292de87808c77a58fd25c83c7380e3ba691

Contents?: true

Size: 846 Bytes

Versions: 10

Compression:

Stored size: 846 Bytes

Contents

<% cache_unless current_user, [current_exhibit, @page] 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

10 entries across 10 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc6 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.rc5 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.rc4 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.rc3 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.rc2 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.rc1 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.alpha.10 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.alpha.9 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.alpha.8 app/views/spotlight/feature_pages/_sidebar.html.erb
blacklight-spotlight-3.0.0.alpha.7 app/views/spotlight/feature_pages/_sidebar.html.erb