Sha256: 2f6e538172d03f0bca3916c7f38d2e27fa31f04e7884abcca139010fd20a8d16

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 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
%>

<%= image_tag field.data if field.data.present? %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
administrate-field-image-1.2.0 app/views/fields/image/_show.html.erb
administrate-field-image-1.1.0 app/views/fields/image/_show.html.erb