Sha256: 4e5e28d78f0a554882ed33b23313b52fdcf6fc479a6659ed782f73e8bdf6494d
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 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` %> <% attachments = Array(field.many? ? field.attachments : field.data) removable = local_assigns.fetch(:removable, false) %> <% attachments.each do |attachment| %> <div class="attachments-listing"> <%= render partial: 'fields/active_storage/item', locals: { field: field, attachment: attachment, removable: removable } %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
worker-field-active_storage-0.2.0 | app/views/fields/active_storage/_items.html.erb |
worker-field-active_storage-0.1.0 | app/views/fields/active_storage/_items.html.erb |