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