Sha256: b521a77c755faa0643ec52bd859d7425724196ff40da124a9b9329c0b1d48c91

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

<% if field.attached? %>
  <style type="text/css" nonce="<%= content_security_policy_nonce %>">
    <%# figure out a way to remove this %>
     td img {
       max-height: unset !important;
     }
  </style>
  <% if field.index_display_preview? %>
    <% if field.many? %>
      <%= render partial: 'fields/active_storage/normal/items',
                 locals: {
                     many: true,
                     field: field,
                     size: field.index_preview_size
                 } %>
    <% else %>
      <%= render partial: 'fields/active_storage/normal/item',
                 locals: {
                     many: false,
                     field: field,
                     attachment: field.data,
                     size: field.index_preview_size
                 } %>
    <% end %>
  <% end %>
  <% if field.index_display_count? %>
    <div class="attachments-count">
      <%= pluralize(field.attachments.count,
                    I18n.t("administrate.fields.active_storage.attachment", default: 'Attachment')
          )
      %>
    </div>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
viniBaxter-field-active_storage-300.0.11 app/views/fields/active_storage/_index.html.erb
viniBaxter-field-active_storage-300.0.10 app/views/fields/active_storage/_index.html.erb
viniBaxter-field-active_storage-300.0.9 app/views/fields/active_storage/_index.html.erb
viniBaxter-field-active_storage-300.0.8 app/views/fields/active_storage/_index.html.erb
viniBaxter-field-active_storage-300.0.4 app/views/fields/active_storage/_index.html.erb