Sha256: edfbb04d7753d65268a63e4e782349040dce860ace88e62de31451ac393cfbdf

Contents?: true

Size: 414 Bytes

Versions: 10

Compression:

Stored size: 414 Bytes

Contents

<%#
# Image Index Partial

This partial renders an image attribute
to be displayed on a resource's index 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 %>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
administrate-field-image-1.1.0 app/views/fields/image/_index.html.erb
administrate-field-image-1.0.0 app/views/fields/image/_index.html.erb
administrate-field-image-0.0.2 app/views/fields/image/_index.html.erb
administrate-field-image-0.0.1 app/views/fields/image/_index.html.erb
administrate-0.1.5 app/views/fields/image/_index.html.erb
administrate-0.1.4 app/views/fields/image/_index.html.erb
administrate-0.1.3 app/views/fields/image/_index.html.erb
administrate-0.1.2 app/views/fields/image/_index.html.erb
administrate-0.1.1 app/views/fields/image/_index.html.erb
administrate-0.1.0 app/views/fields/image/_index.html.erb