Sha256: 0131ea6978b60d7a5964bf75f050bf2163ac5c0a6ec9a89accba5d39b4fb2e27
Contents?: true
Size: 656 Bytes
Versions: 9
Compression:
Stored size: 656 Bytes
Contents
<%# # Image Show Partial This partial renders an image attribute, to be displayed on a resource's show 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 %> <% if field.attached? %> <% if field.show_drop_js_on_show? %> <%= render partial: 'fields/active_storage/items', locals: { field: field } %> <%else %> <%= render partial: 'fields/active_storage/items_on_show', locals: { field: field } %> <% end %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems