Sha256: 7d5ed9b3ff074473b29f7289f706f1e54179dcdb3f74b071b90cec7c8ab7ebb3
Contents?: true
Size: 691 Bytes
Versions: 5
Compression:
Stored size: 691 Bytes
Contents
<%# # Carrierwave Index Partial This partial renders the URL of the attachment as a link that opens in a new window/tab, or the total number of attached files ## Local variables: - `field`: An instance of Administrate::Field::Carrierwave. A wrapper around the attribute pulled from the database. %> <% if field.multiple? %> <%= pluralize(field.files.size, field.attribute.to_s.humanize.downcase) %> <% elsif field.file.present? %> <% if field.image_on_index? %> <%= render 'fields/carrierwave/preview', file: field.file, field: field %> <% else %> <%= link_to 'View', field.file.url, title: field.file.filename, target: '_blank' %> <% end %> <% else %> - <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems