Sha256: 7055c12a190d851f68baf9df066860e10fc8ca824ca744b9452f6058b74883db

Contents?: true

Size: 791 Bytes

Versions: 31

Compression:

Stored size: 791 Bytes

Contents

<% if Hyrax.config.display_media_download_link? %>
    <div>
      <h2 class="sr-only"><%= t('hyrax.file_set.show.downloadable_content.heading') %></h2>
      <%= image_tag thumbnail_url(file_set),
                    class: "representative-media",
                    alt: "",
                    role: "presentation" %>
      <%= link_to t('hyrax.file_set.show.downloadable_content.pdf_link'),
                  hyrax.download_path(file_set),
                  target: :_blank,
                  id: "file_download",
                  data: { label: file_set.id } %>
    </div>
<% else %>
    <div>
      <%= image_tag thumbnail_url(file_set),
                    class: "representative-media",
                    alt: "",
                    role: "presentation" %>
    </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hyrax-3.0.0.pre.beta1 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.4.0 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.3.3 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.3.2 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.3.1 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.3.0 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.2.4 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.2.3 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.2.2 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.2.1 app/views/hyrax/file_sets/media_display/_pdf.html.erb
hyrax-2.2.0 app/views/hyrax/file_sets/media_display/_pdf.html.erb