Sha256: d338ff73764a5a30d61b06d79fc85ddf27c575acaf761a41ae09d0a1bb4586e8

Contents?: true

Size: 1.69 KB

Versions: 1

Compression:

Stored size: 1.69 KB

Contents

<% if presenter.total_parent_collections <= 0 %>
		<div class="alert alert-warning" role="alert"><%= t('hyrax.collections.show.no_visible_parent_collections') %></div>
<% else %>
  <% if presenter.use_parent_more_less? %>
  	<div class="less-parent-collections-block" id="less-parent-collections">
  		<% presenter.visible_parent_collections.each do |document| %>
  			<ul>
  				<li>
  					<strong><%= link_to document, [hyrax, document], id: "src_copy_link_#{document.id}" %></strong>
  				</li>
  			</ul>
  		<% end %>
  		<% if presenter.more_parent_collections? %>
  				<button id="show-more-parent-collections" class="btn show-more-parent-collections-btn"><%= t("hyrax.collections.show.show_more_parent_collections") %></button>
  		<% end %>
  	</div>
  	<% if presenter.more_parent_collections? %>
  		<div class="more-parent-collections-block" id="more-parent-collections">
  			<% presenter.more_parent_collections.each do |document| %>
  				<ul>
  					<li>
  						<strong><%= link_to document, [hyrax, document], id: "src_copy_link_#{document.id}" %></strong>
  					</li>
  				</ul>
  			<% end %>
        <button id="show-less-parent-collections" class="btn show-less-parent-collections-btn"><%= t("hyrax.collections.show.show_less_parent_collections") %></button>
  		</div>
    <% end %>
  <% else %>
		<% presenter.parent_collections.documents.each do |document| %>
			<ul>
				<li>
					<strong><%= link_to document, [hyrax, document], id: "src_copy_link_#{document.id}" %></strong>
				</li>
			</ul>
		<% end %>
    <div class="row">
      <%= render 'hyrax/collections/paginate', solr_response: presenter.parent_collections, page_param_name: :parent_collection_page  %>
    </div>
	<% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hyrax-2.1.0.beta1 app/views/hyrax/collections/_show_parent_collections.html.erb