Sha256: 727fa004a751c80782611f7846681bad05773531c15eb6a920a0399dc2686439

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

<li>
  <% if download.download.attachment_content_type == 'pdf' %>
    <span>
      <%= link_to preview_download_path(id: download, slug: resource.slug), class: 'resource-attachment',
        data: { no_turbolink: true }, target: '_blank' do %>
        <i class="fas fa-eye" aria-hidden="true"></i>
      <% end %>
    </span>
  <% end %>
  <% id = SecureRandom.hex(4) %>
  <span data-toggle="<%= id %>">
    <%= link_to download_path(download, slug: resource.slug), class: 'resource-attachment', data: { no_turbolink: true } do %>
      <i class="far fa-file-<%= "#{file_icon(download.download.attachment_content_type)} #{indent}" %>"></i>
      <%= download.download.title %>
    <% end %>
  </span>
  <% if (description = download.description).present? %>
    <span class="dropdown-pane o-ld-dropdown"
          data-dropdown
          data-hover="true"
          data-hover-delay="0"
          data-hover-pane="true"
          data-v-offset="12"
          id="<%= id %>">
      <%= description %>
    </span>
  <% end %>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lcms-engine-0.4.1 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.4.0 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.3.1 app/views/lcms/engine/resources/_download.html.erb