Sha256: d7da5d98ee5a0b974234bf1828eb2f2005a2166bedd8aa3da480c51520471431
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
<% published_top_level_feature_pages = current_exhibit.feature_pages.for_locale.published.at_top_level -%> <% if published_top_level_feature_pages.present? %> <% if published_top_level_feature_pages.many? %> <li class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" data-bs-toggle="dropdown"><%= navigation.label_or_default %></a> <ul class="dropdown-menu"> <% published_top_level_feature_pages.each do |page| %> <li><%= link_to page.title, [spotlight, page.exhibit, page], class: 'dropdown-item' %></li> <% end %> </ul> </li> <% else %> <%= render Spotlight::Engine.config.spotlight.header_navigation_link_component.new(active: current_page?(url_for([spotlight, published_top_level_feature_pages.first.exhibit, published_top_level_feature_pages.first])), label: published_top_level_feature_pages.first.title, path: [spotlight, published_top_level_feature_pages.first.exhibit, published_top_level_feature_pages.first]) %> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-4.6.1 | app/views/shared/_curated_features_navbar.html.erb |
blacklight-spotlight-4.6.0 | app/views/shared/_curated_features_navbar.html.erb |