Sha256: c5d661a751b5fafbe727f33e2d0282b6a9cc8da5d7ed4f4c89eb716f7da5477e

Contents?: true

Size: 469 Bytes

Versions: 2

Compression:

Stored size: 469 Bytes

Contents

<li class="attachment" data-id="<%= attachment.to_param %>">
  <%= link_to attachment.filename, attachment.url, download: attachment.filename  unless attachment.file.nil? %>
  <%= link_to t('media_magick.remove'), "javascript://", method: "delete", class: "remove btn btn-mini btn-danger", data: { confirm: t('media_magick.confirm_removal') } %>

  <%= hidden_field_tag "#{model.parameterize}[#{relation.singularize}_ids][]", attachment.id if model && relation %>
</li>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
media_magick-0.2.0 app/views/_file.html.erb
media_magick-0.1.1 app/views/_file.html.erb