Skip to content

Commit

Permalink
Merge pull request #5772 from avalonmediasystem/captionless_audio
Browse files Browse the repository at this point in the history
Disable captions upload for audio items
  • Loading branch information
masaball authored Apr 5, 2024
2 parents aa00dbb + 5f793d7 commit e39ddac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/media_objects/_file_upload.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ Unless required by applicable law or agreed to in writing, software distributed
<% end %>
<div class="section-files">
<!-- captions -->
<%= render partial: "supplemental_files_upload", locals: { section: section, label: 'Captions', tag: 'caption' } %>
<% if section.is_video? %>
<%= render partial: "supplemental_files_upload", locals: { section: section, label: 'Captions', tag: 'caption' } %>
<% end %>
<!-- transcripts -->
<%= render partial: "supplemental_files_upload", locals: { section: section, label: 'Transcripts', tag: 'transcript' } %>
<!-- supplemental files -->
Expand Down

0 comments on commit e39ddac

Please sign in to comment.