Sha256: ae1dc29bf466d7579dbea4b81c60c43cd969c71496106453258ea5f5ba45f5ba
Contents?: true
Size: 680 Bytes
Versions: 30
Compression:
Stored size: 680 Bytes
Contents
<%= index_field_wrapper field: @field, flush: flush? do %> <% if @field.value.present? %> <% if @field.value.attached? && @field.value.representable? && @field.is_image %> <%= link_to_if @field.link_to_resource, image_tag(helpers.main_app.url_for(@field.value), class: 'h-10'), resource_path, class: 'block' %> <% elsif @field.value.attached? && @field.is_audio %> <%= link_to_if @field.link_to_resource, audio_tag(helpers.main_app.url_for(@field.value), controls: true, preload: false, class: 'max-h-full h-10'), resource_path, class: 'block h-8' %> <% else %> <%= @field.value.filename %> <% end %> <% else %> — <% end %> <% end %>
Version data entries
30 entries across 30 versions & 1 rubygems