Sha256: fa898139e0d85562b5e04024abe7bdc78a02ca83a0804e00dd3f1bd9e5cc0371

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

<li class="attachment" id="<%= attachment.to_param %>" data-id="<%= attachment.to_param %>"> 
  <%= image_tag attachment.url, alt: attachment.filename if attachment.file %>
  <%= 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/_image.html.erb
media_magick-0.1.1 app/views/_image.html.erb