Sha256: bdf417ebb33cbd0c2a4c2a69385c4ee40fe1577c034d941595181e45f71ccb40

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

<section class="attachments">
  <% list.attachments.each do |attachment| %>
    <div class="link"><%= link_to attachment.title,
      attachment.file.to_s,
      download: File.basename(attachment.file.to_s) %>
    </div>

    <% if attachment.description.present? %>
      <div class="description">
        <%= simple_format attachment.description %>
      </div>
    <% end %>
  <% end %>
</section>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
knowledge_base-0.2.0 app/views/knowledge_base/sectionables/attachments/lists/_list.html.erb