Sha256: 8b74f52eb085c616fbfdae0ec4b16a8f09c1b5403203df8cb6d732fc8e8bf23b

Contents?: true

Size: 676 Bytes

Versions: 5

Compression:

Stored size: 676 Bytes

Contents

<li class="attachment" id="<%= attachment.to_param %>" data-id="<%= attachment.to_param %>">
  <% # smell %>
  <% if attachment.file %>
    <% if attachment.class::TYPE == "file" %>
      <%= link_to attachment.filename, attachment.url, download: attachment.filename %>
    <% else %>
      <%= image_tag attachment.url, alt: attachment.filename %>
    <% end %>
  <% end %>

  <%= link_to t('media_magick.remove'), "javascript://", method: "delete", class: "remove btn btn-mini btn-danger", data: { confirmation: t('media_magick.confirm_removal') } %>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
media_magick-0.4.1 app/views/_loader.html.erb
media_magick-0.4.0 app/views/_loader.html.erb
media_magick-0.3.3 app/views/_loader.html.erb
media_magick-0.3.2 app/views/_loader.html.erb
media_magick-0.3.0 app/views/_loader.html.erb