Sha256: 5a3f140d23a0ce25e55f98e7729b086e7b6131e9bf307930cd6c7b1264260b1a
Contents?: true
Size: 1023 Bytes
Versions: 24
Compression:
Stored size: 1023 Bytes
Contents
<%= render Ariadne::BaseComponent.new(tag: :ul, classes: @classes, attributes: @attributes) do |grid| %> <% items.each do |item| %> <li class="<%= item.classes %> <%= item.has_href? ? Ariadne::GridComponent::DEFAULT_LINK_COLOR_CLASSES : "ariadne-bg-white" %>"> <% if item.has_href? %> <%= render Ariadne::LinkComponent.new(href: item.href) do %> <%= item.entry %> <% end %> <% if item.actions.any? %> <div> <div class="ariadne--mt-px ariadne-flex ariadne-divide-x"> <% item.actions.each_with_index do |action, idx| %> <div class="<%= idx.zero? ? '' : 'ariadne--ml-px ' %>w-0 ariadne-flex-1 ariadne-flex"> <%= action %> </div> <% end %> </div> </div> <% end %> <% else %> <div class="ariadne-flex-1 ariadne-flex ariadne-flex-col ariadne-p-8"> <%= item.entry %> </div> <% end %> </li> <% end %> <% end %>
Version data entries
24 entries across 24 versions & 1 rubygems