Sha256: f029b951b68da791634a1be4326357123b579cf7d14970064795cb4d879ae0ce

Contents?: true

Size: 426 Bytes

Versions: 45

Compression:

Stored size: 426 Bytes

Contents

<%= index_field_wrapper field: @field do %>
  <% if @field.value.present? %>
    <% if @field.value.attached? && @field.value.representable? && @field.is_image %>
      <%= link_to_if @field.link_to_resource, image_tag(@field.variant, class: 'max-h-full'), helpers.resource_path(@resource.model), class: 'block h-8' %>
    <% else %>
      <%= @field.value.filename %>
    <% end %>
  <% else %>
    —
  <% end %>
<% end %>

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
avo-0.5.0.beta5 app/components/avo/index/fields/file_field_component.html.erb
avo-0.5.0.beta4 app/components/avo/index/fields/file_field_component.html.erb
avo-0.5.0.beta3 app/components/avo/index/fields/file_field_component.html.erb
avo-0.5.0.beta2 app/components/avo/index/fields/file_field_component.html.erb
avo-0.5.0.beta1 app/components/avo/index/fields/file_field_component.html.erb