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

Version Path
openproject-primer_view_components-0.23.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.19.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.22.2 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.18.2 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.22.1 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.18.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.22.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.18.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.21.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.17.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.20.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.16.1 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.16.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.19.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.15.1 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.15.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.18.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.17.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.17.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.14.0 app/components/primer/alpha/action_list.html.erb