Sha256: 37b285ed0809a6f5c4b453da8e74765d409336deb247bf75e3dd24e2dc28b84f

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

<%#
# Carrierwave Show Partial

This partial renders the URL of the attachment as a link that
opens in a new window/tab, and an optional image preview

## Local variables:

- `field`:
  An instance of Administrate::Field::Carrierwave.
  A wrapper around the attribute pulled from the database.
%>

<%= render 'fields/carrierwave/preview', field: field %>
<%= link_to field.filename, field.url, target: '_blank' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
administrate-field-carrierwave-0.0.2 app/views/fields/carrierwave/_show.html.erb
administrate-field-carrierwave-0.0.1 app/views/fields/carrierwave/_show.html.erb