Sha256: 650955113ff187bb249699896e48ea248fcad391c4a33015066ed82bea8d290d

Contents?: true

Size: 914 Bytes

Versions: 4

Compression:

Stored size: 914 Bytes

Contents

<% if can? :manage, Spotlight::Resource.new(exhibit: current_exhibit) %>
  <div data-behavior='reindex-monitor' data-monitor-url="<%= monitor_exhibit_resources_path(current_exhibit) %>">
    <%= render 'reindex_progress_panel' %>
  </div>
  <div class="add-items-nav clearfix">
    <div class="pull-left">
      <%= link_to t('.reindex'), reindex_all_exhibit_resources_path(current_exhibit), method: :post, class: 'btn btn-default' %>
    </div>
    <div class="pull-right">
      <% if Spotlight::Engine.config.new_resource_partials.any? %>
        <%= link_to t('.new.repo_item'), new_exhibit_catalog_path(current_exhibit), class: 'btn btn-default' %>
      <% end %>

      <% if Spotlight::Engine.config.uploaded_resource_partials.any? %>
        <%= link_to t('.new.non_repo_item'), new_exhibit_resources_upload_path(current_exhibit), class: 'btn btn-default' %>
      <% end %>
    </div>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.15.0 app/views/spotlight/catalog/_admin_header.html.erb
blacklight-spotlight-0.14.2 app/views/spotlight/catalog/_admin_header.html.erb
blacklight-spotlight-0.14.1 app/views/spotlight/catalog/_admin_header.html.erb
blacklight-spotlight-0.14.0 app/views/spotlight/catalog/_admin_header.html.erb