Sha256: 9b213f70c119897c35312fed777e68ce37e7933d6add728fe706fc1ff958228c

Contents?: true

Size: 606 Bytes

Versions: 8

Compression:

Stored size: 606 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 %>
  <%= I18n.t("administrate.fields.active_storage.no_attachment", default: 'No attachment') %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
administrate-field-active_storage-1.0.2 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-1.0.1 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-1.0.0 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.4.2 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.4.1 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.4.0 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.8 app/views/fields/active_storage/_show.html.erb
administrate-field-active_storage-0.3.7 app/views/fields/active_storage/_show.html.erb