Sha256: 45326150f357f0c1d80591e9dcb368bd45af20d66b866d362118606e7939e1c0
Contents?: true
Size: 1.95 KB
Versions: 59
Compression:
Stored size: 1.95 KB
Contents
<div class="flex items-center justify-center"> <% if display_inline? %> <div class="flex max-w-xs rounded"> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :higher, svg: 'arrow-up' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :lower, svg: 'arrow-down' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_top, svg: 'download-solid-reversed' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_bottom, svg: 'download-solid' %> </div> <% else %> <div class="popover inline-block" data-controller="popover" data-popover-translate-x="-100%" data-popover-translate-y="-32px" data-action="mouseover->popover#mouseOver mouseout->popover#mouseOut" > <%= button_tag nil, title: t('avo.order.reorder_record').capitalize, class: 'flex items-center', data: { 'tippy': 'tooltip', } do %> <%= helpers.svg('switch-vertical', class: 'text-gray-400 h-6 hover:text-gray-600') %> <% end %> <div class="flex hidden absolute max-w-xs bg-white rounded p-2 z-40" data-popover-target="content"> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :higher, svg: 'arrow-up' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :lower, svg: 'arrow-down' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_top, svg: 'download-solid-reversed' %> <%= render Avo::Index::Ordering::ButtonComponent.new resource: @resource, reflection: @reflection, direction: :to_bottom, svg: 'download-solid' %> </div> <% end %> </div>
Version data entries
59 entries across 59 versions & 1 rubygems