Sha256: 894025f1204c5c43ae130de58f00edf7a686a90b06e621d1bde834b28e51ceaa

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 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="<i class="fa fa-eye" aria-hidden="true"></i>" 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

7 entries across 7 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.5.4 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.5.3 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.5.2 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.5.1 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.5.0 app/views/lcms/engine/resources/_download.html.erb
lcms-engine-0.4.2 app/views/lcms/engine/resources/_download.html.erb