Sha256: e949be14380bea2b66f01dc37ad1ce3f0c122ad05b14410f1de8ad1097d65a7f

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

<% if downloads.present? && (downloads[:pdf].present? || downloads[:ead].present?) %>
<li>
  <div class='dropdown'>
    <button class='btn btn-secondary dropdown-toggle' type="button" id="download-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      <%= t 'arclight.views.show.download.default' %>
    </button>
    <div class="dropdown-menu" aria-labelledby="download-dropdown">
      <% if downloads[:pdf].present? %>
        <a class="dropdown-item" href="<%= downloads[:pdf][:href] %>"><%= t('arclight.views.show.download.pdf', size: downloads[:pdf][:size]) %></a>
      <% end %>
      <% if downloads[:ead].present? %>
        <a class="dropdown-item" href="<%= downloads[:ead][:href] %>"><%= t('arclight.views.show.download.ead', size: downloads[:ead][:size]) %></a>
      <% end  %>
    </div>
  </div>
</li>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arclight-0.1.0 app/views/catalog/_collection_downloads.html.erb