Sha256: 4dc42952aadf63f59a635860f29cb9d00d9070b8cfe5263663faec4d7596ba82

Contents?: true

Size: 892 Bytes

Versions: 66

Compression:

Stored size: 892 Bytes

Contents

<action-list>
  <%= 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 %>
</action-list>

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
primer_view_components-0.35.2 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.35.1 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.35.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.48.2 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.48.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.48.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.47.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.47.0 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.34.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.46.1 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.46.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.45.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.44.3 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.44.2 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.44.1 app/components/primer/alpha/action_list.html.erb
primer_view_components-0.33.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.44.0 app/components/primer/alpha/action_list.html.erb
openproject-primer_view_components-0.43.1 app/components/primer/alpha/action_list.html.erb