Sha256: 7701ed5d6550c9e95696d36baaff736b76bff98faf821c06497f6840c3d73054

Contents?: true

Size: 528 Bytes

Versions: 7

Compression:

Stored size: 528 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 } %>
<% else %>
  No attachment
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
administrate-field-active_storage-0.3.6 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.5 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.4 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.3 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.2 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.1 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.0 app/views/fields/active_storage/_show.html.erb