Skip to content

Commit

Permalink
🎁 Update theme show pages with video embed
Browse files Browse the repository at this point in the history
This commit updates the scholarly theme's show page to handle video embed

Issue:
- #911
  • Loading branch information
ShanaLMoore committed Dec 6, 2023
1 parent 755e4f5 commit e8a511b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/views/themes/scholarly_show/hyrax/base/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,32 @@
<div class="panel-body">
<div class="row">
<%= render 'workflow_actions_widget', presenter: @presenter %>
<% if @presenter.iiif_viewer? %>
<% if @presenter.video_embed_viewer? %>
<%= render 'video_embed_viewer', presenter: @presenter %>
<div class="col-sm-12">
<div class="image-show-description">
<% render 'work_description', presenter: @presenter %>
</div>
</div>
<% elsif @presenter.iiif_viewer? %>
<div class="col-sm-12 centered-media">
<%= render 'representative_media', presenter: @presenter, viewer: true %>
</div>
<div class="col-sm-12">
<div class="image-show-description">
<%= render 'work_description', presenter: @presenter %>
<% render 'work_description', presenter: @presenter %>
</div>
</div>
<% elsif Flipflop.default_pdf_viewer? && @presenter.show_pdf_viewer? && @presenter.file_set_presenters.any?(&:pdf?) %>
<% elsif @presenter.pdf_viewer? %>
<div class="col-sm-12">
<%= render 'pdf_js', file_set_presenter: pdf_file_set_presenter(@presenter) %>
</div>
<div class="col-sm-12">
<div class="image-show-description">
<%= render 'work_description', presenter: @presenter %>
</div>
</div>
<% else %>
<div class="col-sm-3 mb-1">
<%= render 'representative_media', presenter: @presenter, viewer: false unless @presenter.iiif_viewer? && @presenter.file_set_presenters.any?(&:pdf?) %>
<%= render 'representative_media', presenter: @presenter, viewer: false %>
</div>
<div class="col-sm-9">
<%= render 'work_description', presenter: @presenter %>
<% render 'work_description', presenter: @presenter %>
</div>
<% end %>
</div>
Expand Down

0 comments on commit e8a511b

Please sign in to comment.