Sha256: a70aaa4cc5db0890c027288ba80a93d4902d77e021885a61df65639f43c7a196

Contents?: true

Size: 466 Bytes

Versions: 104

Compression:

Stored size: 466 Bytes

Contents

<%= index_field_wrapper **field_wrapper_args, flush: true do %>
  <% if @field.value.present? %>
    <%= link_to_if @field.link_to_record.present?,
                   image_tag(@field.value,
                             height: @field.height,
                             style: "border-radius: #{@field.radius}px; max-height: #{@field.height}#{@field.height.to_s&.ends_with?('px') ? '' : 'px'};"),
                   resource_view_path
    %>
  <% end %>
<% end %>

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
avo-3.0.1.beta12 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.1.beta13 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.1.beta10 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.1.beta11 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.0.pre19 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.1.beta9 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.2.2 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.2.1 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.2.0 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.7 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.6 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.5 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.4 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.3 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.2 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.1 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.1.0 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.8 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.7 app/components/avo/fields/external_image_field/index_component.html.erb
avo-3.0.6 app/components/avo/fields/external_image_field/index_component.html.erb