Sha256: 6f5cc163b578a4b7a440cba6cd266c90ea1427ed0c7a3dbc31c8c54f44e5d3b0

Contents?: true

Size: 501 Bytes

Versions: 12

Compression:

Stored size: 501 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? %>
  <%= render partial: 'fields/active_storage/items', locals: { field: field } %>
<% end %>

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
viniBaxter-field-active_storage-3.0.0 app/views/fields/active_storage/_show.html.erb
viniBaxter-field-active_storage-0.2.4 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.2.2 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.2.1 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.2.0 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.1.8 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.1.7 app/views/fields/active_storage/_show.html.erb
worker-field-active_storage-0.2.0 app/views/fields/active_storage/_show.html.erb
worker-field-active_storage-0.1.0 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.1.6 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.1.5 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.1.4 app/views/fields/active_storage/_show.html.erb