Sha256: ca7b1e08e557500c89755d0a85beecea1de074e28f74d2ce0c699f90c2d83e9d
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
<%= render(Primer::BaseComponent.new(tag: :div)) do %> <% if heading %> <%= heading %> <% end %> <%= render(Primer::BaseComponent.new(tag: :ul, **@system_arguments)) do %> <% items.each_with_index do |item, index| %> <%# the conditions here make sure two dividers are never rendered one after the other %> <% if index > 0 && @show_dividers && !item.is_a?(Divider) && !items[index - 1].is_a?(Divider) %> <%= render(Primer::Alpha::ActionList::Divider.new) %> <% end %> <%= item %> <% end %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems