Sha256: 071fcb485d98be08bab73b1ac662b57827c6084de513508b7da280421d4852ff

Contents?: true

Size: 1.47 KB

Versions: 7

Compression:

Stored size: 1.47 KB

Contents

<div class='d-md-flex justify-content-between al-show'>
  <div class='al-show-breadcrumb'>
    <nav aria-label="breadcrumb">
      <%= render breadcrumb_component.new(presenter: presenter) %>
    </nav>
  </div>
</div>

<div class="title-container">
  <%= content_tag :h1 do %>
    <%= document.normalized_title %>
  <% end %>
  <%= render 'arclight/requests', document: document %>
  <%= render Arclight::BookmarkComponent.new document: document, action: bookmark_config %>
  <%= toggle_sidebar %>
  <%= online_filter %>
</div>

<%= render Arclight::MetadataSectionComponent.with_collection(component_metadata_partials,
             metadata_attr: { layout: Arclight::UpperMetadataLayoutComponent },
             presenter: presenter) unless document.collection? %>

<%= embed %>

<% if document.collection? %>
<div id="metadata">
  <h2 class="sr-only visually-hidden"><%= t 'arclight.views.show.context' %></h2>
  <%= render Arclight::MetadataSectionComponent.with_collection(metadata_partials,
                metadata_attr: { layout: Arclight::UpperMetadataLayoutComponent },
                presenter: presenter, heading: true) %>
</div>
<% elsif document.children? %>
<div id="contents">
  <h2 class="al-show-sub-heading"><%= t 'arclight.views.show.contents' %></h2>
  <%= helpers.turbo_frame_tag "al-hierarchy-#{document.id}-document", loading: 'lazy', src: helpers.hierarchy_solr_document_path(id: document.id, paginate: true, key: '-document', per_page: 50) %>
</div>
<% end %>

<%= access %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arclight-1.4.0 app/components/arclight/document_component.html.erb
arclight-1.3.0 app/components/arclight/document_component.html.erb
arclight-1.2.0 app/components/arclight/document_component.html.erb
arclight-1.1.3 app/components/arclight/document_component.html.erb
arclight-1.1.2 app/components/arclight/document_component.html.erb
arclight-1.1.1 app/components/arclight/document_component.html.erb
arclight-1.1.0 app/components/arclight/document_component.html.erb