sul-dlss/argo

View on GitHub
app/components/show/item_component.html.erb

Summary

Maintainability
Test Coverage
<%= render ShowEmbargoComponent.new(presenter:) %>

<div class="row mb-5">
  <div class="col-md-3">
    <%= render Show::Item::ThumbnailComponent.new(document:) %>
  </div>
  <div class="col-md-9">
    <%= render Show::ExternalLinksComponent.new(document:, presenter:) %>
    <%= render Show::ControlsComponent.new(presenter:,
                                           manager: helpers.can?(:update, presenter.cocina)) %>
  </div>
</div>

<%= render Show::WorkflowErrorComponent.new(document:) %>

<div class="row">
  <div class="col-md-6">
    <%= render Show::Item::OverviewComponent.new(presenter:) %>
  </div>
  <div class="col-md-6">
    <%= render Show::Item::DetailsComponent.new(presenter:) %>
  </div>
</div>

<div class="accordion">
  <%= render 'events_default', view_token: %>
  <%= render 'cocina_default', view_token: %>
  <%= render 'history_default', document: %>
  <%= render ContentsComponent.new(presenter:) %>
  <%= render Show::Item::Structure::FileHierarchyComponent.new(view_token:) %>
  <%= render TechmdComponent.new(view_token:, presenter:) %>
</div>