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-5.2.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.1.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.0.3 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.0.2 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.0.1.pre.beta app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.1.0.pre.alpha4 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.1.0.pre.alpha2 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.1.0.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.0.1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-5.0.1.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.18.1.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.18.1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.18.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.17.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.17.0.pre.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.16.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.15.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.14.0 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb
playbook_ui-4.13.1 app/pb_kits/playbook/pb_multiple_users/_multiple_users.html.erb