Sha256: 5a17233b6748b689d83a10849f16c971506a87e44ef56735240899c1bf844af0

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

<h4 class="nav-heading"><%=t(:'spotlight.curation.sidebar.header') %></h4>

<ul class="nav sidenav flex-column">
  <%= nav_link t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_path(current_exhibit) %>
  <% if can? :tag, current_exhibit %>
    <%= nav_link t(:'spotlight.curation.sidebar.tags'), spotlight.exhibit_tags_path(current_exhibit) %>
  <% end %>
  <% if can? :manage, Spotlight::Search.new(exhibit: current_exhibit) %>
    <%= nav_link t(:'spotlight.curation.sidebar.browse'), spotlight.exhibit_searches_path(current_exhibit) %>
  <% end %>
  <% if can? :manage, Spotlight::FeaturePage.new(exhibit: current_exhibit) or can? :manage, current_exhibit.home_page %>
    <%= nav_link t(:'spotlight.curation.sidebar.feature_pages'), spotlight.exhibit_feature_pages_path(current_exhibit), 'data-no-turbolink' => true %>
  <% end %>
  <% if can? :manage, Spotlight::AboutPage.new(exhibit: current_exhibit) %>
    <%= nav_link t(:'spotlight.curation.sidebar.about_pages'), spotlight.exhibit_about_pages_path(current_exhibit), 'data-no-turbolink' => true %>
  <% end %>
  <% if (can? :manage, current_exhibit.translations.first_or_initialize) && current_exhibit.languages.any? %>
    <%= nav_link t(:'spotlight.curation.sidebar.translations'), spotlight.edit_exhibit_translations_path(current_exhibit), 'data-no-turbolink' => true %>
  <% end %>
</ul>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 app/views/spotlight/shared/_curation_sidebar.html.erb
blacklight-spotlight-3.0.0.alpha.1 app/views/spotlight/shared/_curation_sidebar.html.erb