<% if can? :manage, Spotlight::Resource.new(exhibit: current_exhibit) %>
<%= render 'reindex_progress_panel' %>
<%= link_to t('.reindex'), reindex_all_exhibit_resources_path(current_exhibit), method: :post, class: 'btn btn-default' %>
<% 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 %>
<% end %>