Sha256: f1d8c81d58f5d32bc7629dea8a5180222af46f3ad1c95358ef77d59888096c18
Contents?: true
Size: 823 Bytes
Versions: 51
Compression:
Stored size: 823 Bytes
Contents
<%= render(Primer::BaseComponent.new(tag: :div)) do %> <% if acts_as_form_input? %> <span data-list-inputs="true"> <%= @form_builder.hidden_field(@input_name, multiple: multi_select?, skip_default_ids: true) %> </span> <% end %> <% 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 %> <%= capture(&post_list_content_block) if post_list_content_block %> <% end %>
Version data entries
51 entries across 51 versions & 2 rubygems