Sha256: 052d08e0179a759866a707861dd2fcf238170fd7abd3b6b7e91243025d3cdb2b
Contents?: true
Size: 682 Bytes
Versions: 26
Compression:
Stored size: 682 Bytes
Contents
<%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do |list| %> <% items.each do |item| %> <% if item.linked? %> <%= render Ariadne::BaseComponent.new(tag: :li, classes: item.classes, attributes: item.attributes) do %> <%= render Ariadne::LinkComponent.new(href: item.link[:href], classes: item.link[:classes], attributes: item.link[:attributes]) do %> <%= item.entry %> <% end %> <% end %> <% else %> <%= render Ariadne::BaseComponent.new(tag: :li, classes: item.classes, attributes: item.attributes) do %> <%= item.entry %> <% end %> <% end %> <% end %> <% end %>
Version data entries
26 entries across 26 versions & 1 rubygems