Sha256: 51a7fc472bd5be6058621c1d17ca4d8fd64c941736db43bd13a2417e8ea913d9
Contents?: true
Size: 949 Bytes
Versions: 12
Compression:
Stored size: 949 Bytes
Contents
<%# Renders the options of the downloads dropdown button %> <% document ||= @document %> <% if document.direct_download.present? %> <% if document.direct_download[:download].is_a? Array %> <% document.direct_download[:download].each do |download| %> <%= download_link_file(download['label'], document.id, download['url']) %> <% end %> <% end %> <% if document.direct_download[:download].is_a? String %> <%= download_link_file(download_text(document.file_format), document.id, document.direct_download[:download]) %> <% end %> <% end %> <% if document.hgl_download.present? %> <%= download_link_hgl(download_text(document.download_types.first[0]), document) %> <% end %> <% if document.iiif_download.present? %> <%= download_link_iiif %> <% end %> <% if document.download_types.present? %> <% document.download_types.each do |type| %> <%= download_link_generated(type.first, document) %> <% end %> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems