Sha256: 8c03a4a00652bc7eb0ab20d47e03dffe57274cc474afcbe22fd4162c8dddb35a

Contents?: true

Size: 929 Bytes

Versions: 71

Compression:

Stored size: 929 Bytes

Contents

<% published_top_level_feature_pages = current_exhibit.feature_pages.published.at_top_level -%>
<% if published_top_level_feature_pages.present? %>
  <% if published_top_level_feature_pages.many? %>
    <li class="dropdown">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= navigation.label_or_default %> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <% published_top_level_feature_pages.each do |page| %>
          <li><%= link_to page.title, [spotlight, page.exhibit, page] %></li>
        <% end %>
      </ul>
    </li>
  <% else %>
    <li class="<%= "active" if current_page?(url_for([spotlight, published_top_level_feature_pages.first.exhibit, published_top_level_feature_pages.first])) %>"><%= link_to published_top_level_feature_pages.first.title, [spotlight, published_top_level_feature_pages.first.exhibit, published_top_level_feature_pages.first] %></li>
  <% end %>
<% end %>

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
blacklight-spotlight-0.17.1 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.17.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.16.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.15.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.14.2 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.14.1 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.14.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.13.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.12.1 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.12.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.11.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.10.3 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.10.2 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.10.1 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.10.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.9.2 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.9.1 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.9.0 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.8.2 app/views/shared/_curated_features_navbar.html.erb
blacklight-spotlight-0.8.1 app/views/shared/_curated_features_navbar.html.erb