% provide :page_title, t("hyrax.admin.sidebar.collections") %>
<% provide :head do %>
<%= rss_feed_link_tag route_set: hyrax %>
<%= atom_feed_link_tag route_set: hyrax %>
<% end %>
<% provide :page_header do %>
<%= t("hyrax.admin.sidebar.collections") %>
<% end %>
<% if can?(:create_any, Collection) && @collection_type_list_presenter.any? %>
<% if @collection_type_list_presenter.many? %>
<% # modal to select type %>
<% else @collection_type_list_presenter.any? %>
<% # link directly to create collection form with type %>
<%= link_to(t('helpers.action.collection.new'), append_collection_type_url(new_dashboard_collection_path, @collection_type_list_presenter.first_collection_type.id), class: 'btn btn-primary') %>
<% end %>
<% end %>
<%# Collections list %>