Sha256: fd083e5d46d92e9dfc9125cb2156b15f99a5e92b2e70ef6df907c455e65d26c7
Contents?: true
Size: 470 Bytes
Versions: 59
Compression:
Stored size: 470 Bytes
Contents
<%= index_field_wrapper field: @field, resource: @resource, flush: true do %> <div class="flex gap-1 items-center flex-nowrap"> <% value.take(3).each do |item| %> <%= render Avo::Fields::TagsField::TagComponent.new(label: label_from_item(item)) %> <% end %> <% if value.count > 3 %> <%= render Avo::Fields::TagsField::TagComponent.new(label: '...', title: I18n.t('avo.x_items_more', count: value.count - 3)) %> <% end %> </div> <% end %>
Version data entries
59 entries across 59 versions & 1 rubygems