Sha256: e71fd6f5c0486df24023b966b0f6c1556cc9f50dc746a8658c673722538f9c5e

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

<%- if generic_file.image? -%>
  <%= image_tag download_path(generic_file, datastream_id: 'thumbnail'), class: 'representative_image' %>
<% elsif generic_file.audio? %>
  <audio controls="controls" class="video-js vjs-default-skin" data-setup="{}" preload="auto">
    <source src="<%= download_path(generic_file, datastream_id: 'ogg') %>" type="audio/ogg" />
    <source src="<%= download_path(generic_file, datastream_id: 'mp3') %>" type="audio/mpeg" />
    Your browser does not support the audio tag.
  </audio>
<%- else -%>
  <%= image_tag 'curate/nope.png', class: "canonical-image" %>
<%- end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.6.6 app/views/curation_concern/generic_files/_media_display.html.erb
curate-0.6.5 app/views/curation_concern/generic_files/_media_display.html.erb
curate-0.6.4 app/views/curation_concern/generic_files/_media_display.html.erb
curate-0.6.3 app/views/curation_concern/generic_files/_media_display.html.erb