Sha256: 2dae1e0395babfd6e7a0b226cf7853696ab5074e7848aa84997e0eef5c4ba8ec

Contents?: true

Size: 481 Bytes

Versions: 96

Compression:

Stored size: 481 Bytes

Contents

<%= content_tag(:div,
    id: object.id,
    data: object.data,
    class: object.classname) do %>
    <% object.users.take(object.display_count).each do |user| %>
      <%= pb_rails("avatar", props: user.merge({size: "xs", classname: "pb_multiple_users_item"}) ) %>
    <% end %>

    <% if object.more_than_four %>
      <div class="pb_multiple_users_item multiple_users_badge">
        <%= "+#{object.users.count - object.display_count}" %>
      </div>
    <% end %>
<% end %>

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
playbook_ui-6.2.1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.2.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-7.0.0.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0.pre.alpha5 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0.pre.alpha4 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0.pre.alpha3 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0.pre.alpha2 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.1.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1.pre.alpha6 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1.pre.alpha5 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1.pre.alpha4 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1.pre.alpha3 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1.pre.alpha2 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.2.0.pre.alpha15 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-6.0.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb