Sha256: 41e954fc4ee492406e11b252771d66c0ca4bf96efea7f378b39e70b6e73af63d

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 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

2 entries across 2 versions & 1 rubygems

Version Path
viniBaxter-field-active_storage-11.0.1 app/views/fields/active_storage/_show.html.erb
viniBaxter-field-active_storage-11.0.0 app/views/fields/active_storage/_show.html.erb