<% provide :page_title, construct_page_title(@presenter.title) %>
<% if @presenter.banner_file.present? %>
<% else %>
<% end %>

<%= @presenter.title.first %>

<%= @presenter.collection_type_badge %> <%= @presenter.permission_badge %>
<% unless @presenter.logo_record.blank? %>
<% @presenter.logo_record.each_with_index do |lr, i| %> <% if lr[:linkurl].blank? %> <%= lr[:alttext] %> <% else %> <%= lr[:alttext] %> <% end %> <% end %>
<% end %> <% unless @presenter.total_viewable_items.blank? %>
<%= @presenter.total_viewable_items %> <%= pluralize(@presenter.total_viewable_items, t('.item_count')) %>
<% unless @presenter.creator.blank? %>
Created by: <%= @presenter.creator.first %>
<% end %> <% unless @presenter.modified_date.blank? %>
Last Updated: <%= @presenter.modified_date %>
<% end %>
<% end %>
<%= render 'collection_description', presenter: @presenter %> <% if @presenter.collection_type_is_nestable? && @presenter.total_parent_collections > 0 %>

<%= t('.parent_collection_header') %> (<%= @presenter.total_parent_collections %>)

<%= render 'show_parent_collections', presenter: @presenter %>
<% end %>
<% if @members_count > 0 || @presenter.subcollection_count > 0 %>
<% if collection_search_parameters? %>

<%= t('hyrax.dashboard.collections.show.search_results') %>

<% end %>
<% end %> <% if @presenter.collection_type_is_nestable? && @subcollection_count > 0 %>

<%= t('.subcollection_count') %> (<%= @subcollection_count %>)

<%= render 'subcollection_list', collection: @subcollection_docs %>
<% end %> <% if @members_count > 0 %>

<%= t('.works_in_collection') %> (<%= @members_count %>)

<%= render 'sort_and_per_page', collection: @presenter %>
<%= render_document_index @member_docs %>
<%= render 'paginate' %>
<% end # if @members_count > 0 %>