Sha256: 0ec3304335582525360a22a96baae77d1ef82bfa5abf671ce04c846ef5ffb4cf
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 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` - `size`: [x, y] Maximum size of the ActiveStorage preview. Defaults to `field.show_preview_size`. %> <% removable = local_assigns.fetch(:removable, false) size = local_assigns.fetch(:size, field.show_preview_size) %> <% field.attachments.each do |attachment| %> <div class="attachments-listing"> <%= render partial: 'fields/active_storage/item', locals: { field: field, attachment: attachment, removable: removable, size: size } %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-active_storage-0.3.8 | app/views/fields/active_storage/_items.html.erb |