Sha256: af4d66d30c7b2c8ad1b5584f01963469b405053fac5c169ce2da18e28be1b9aa

Contents?: true

Size: 777 Bytes

Versions: 8

Compression:

Stored size: 777 Bytes

Contents

<%#
# Items Partial

This partial renders one or more attachments

## Local variables:

- `field`:
  An instance of [Administrate::Field::Image].
  A wrapper around the image url pulled from the database.
- `removable`:
  A boolean used to control the display of a `Remove` link which
  is used to destroy a single attachment.  Defaults to `false`
%>

<%
  removable = local_assigns.fetch(:removable, false)
%>

<% field.attachments.each do |attachment| %>
  <div class="attachments-listing">
    <%= render partial: 'fields/active_storage/item',
               locals: {
                   field: field,
                   attachment: attachment,
                   removable: removable,
                   size: field.show_preview_size
               } %>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
administrate-field-active_storage-0.3.7 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.6 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.5 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.4 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.3 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.2 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.1 app/views/fields/active_storage/_items.html.erb
administrate-field-active_storage-0.3.0 app/views/fields/active_storage/_items.html.erb