Sha256: 7cc4de4e397b73f7f5c1622bf660d6a0799c4483ca9214b28b13e0d1d7708c4e
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
<%# # Carrierwave Show Partial This partial renders a summary of the current attachment(s) for this attribute ## Local variables: - `field`: An instance of Administrate::Field::Carrierwave. A wrapper around the attribute pulled from the database. %> <% if field.multiple? %> <% if field.files.any? %> <ul> <%- field.files.each do |file| %> <li><%= render 'fields/carrierwave/file', file: file %></li> <% end %> </ul> <% else %> <span>No file(s) uploaded yet</span> <% end %> <% else %> <% if field.image.present? %> <%= render 'fields/carrierwave/preview', file: field.file, field: field %> <% else %> <%= render 'fields/carrierwave/file', file: field.file %> <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-carrierwave-0.1.1 | app/views/fields/carrierwave/_show.html.erb |
administrate-field-carrierwave-0.1.0 | app/views/fields/carrierwave/_show.html.erb |