Sha256: 85b260c28e5cd2c17a892727ef20a2dddcd33d3b775d4d6cf6282ee99434021b
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 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
3 entries across 3 versions & 1 rubygems