Sha256: 0c1ee08d168de505db7b541091bd331d21e357782b884f6a642f96dda0852a43

Contents?: true

Size: 797 Bytes

Versions: 24

Compression:

Stored size: 797 Bytes

Contents

<%= content_tag(:div,
  aria: object.aria,
  class: object.classname,
  data: object.data,
  id: object.id,
  **combined_html_options) do %>
  <%= pb_rails("avatar", props: object.users[0].merge({size: "xs", classname: "pb_multiple_users_stacked_item", dark: object.dark}) ) %>

  <% unless object.only_one %>
    <% if object.more_than_two %>
      <%= pb_rails("badge", props: {
        dark: object.dark,
        text: "+#{object.users.count - object.display_count}",
        variant: "primary",
        rounded: true,
        classname: "pb_multiple_users_stacked_item second_item" }) %>
    <% else %>
      <%= pb_rails("avatar", props: object.users[1].merge({size: "xs", classname: "pb_multiple_users_stacked_item second_item", dark: object.dark}) ) %>
    <% end %>
  <% end %>

<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
playbook_ui-13.21.0.pre.alpha.PBNTR224letuserresetrowexpansion2466 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-13.21.0.pre.alpha.PLAY120322465 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2404 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-13.20.0.pre.alpha.play1247htmloptions2403 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb