Sha256: 141dfd071b40491f36dc0e59cf96a54f794cde617c020e72e63d1f8f6fcb9844

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

<% 
  attachments = Array(field.many? ? field.attachments : field.data)
  removable = local_assigns.fetch(:removable, false)
%>
<% attachments.each do |attachment| %>
  <div class="attachments-listing">
    <%= render partial: 'fields/active_storage/item', locals: { field: field, attachment: attachment, removable: removable, image_size: field.show_preview_size } %>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
viniBaxter-field-active_storage-14.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-12.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-11.0.2 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-11.0.1 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-11.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-10.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-9.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-8.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-7.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-6.0.0 app/views/fields/active_storage/_items_on_show.html.erb
viniBaxter-field-active_storage-5.0.0 app/views/fields/active_storage/_items_on_show.html.erb