Sha256: ee368273f634c1701b06d0eface9521cda9263dc70944ccf333f4166502d204c
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
<%# # Image Index Partial This partial renders an image attribute to be displayed on a resource's index page. By default, the attribute is rendered as an image tag. ## Local variables: - `field`: An instance of [Administrate::Field::Image][1]. A wrapper around the image url pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Image %> <% attachments = Array(field.many? ? field.attachments : field.data) %> <% if field.attached? %> <%= pluralize(attachments.count, 'Attached file') %> <% else %> 0 Attached files <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-active_storage-0.1.6 | app/views/fields/active_storage/_index.html.erb |