Sha256: 9b9760147372379131b5c61a8d62c5ed423c144a8c02414561451675ce09df1a
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
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) variant = local_assigns.fetch(:variant, field.show_preview_variant) 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, variant: variant, size: size } %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems