Sha256: 5146a723adb5dec35f8181ad39319a0cf29a61abf6b94c83758a34f519e7f62a
Contents?: true
Size: 456 Bytes
Versions: 163
Compression:
Stored size: 456 Bytes
Contents
<%= index_field_wrapper **field_wrapper_args, 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
163 entries across 163 versions & 1 rubygems