Sha256: 28c4ac2034263979fc9686bb84838d8f2456866da0b67fc0c17068933dab49c3

Contents?: true

Size: 1.27 KB

Versions: 245

Compression:

Stored size: 1.27 KB

Contents

<%= pb_content_tag do %>
  <%= pb_rails(
    "avatar",
    props: object.users[0].merge({
      classname: "pb_multiple_users_stacked_item first_item" +
                 (object.double_bubble ? " double_bubble" : "") +
                 (object.triple_bubble ? " triple_bubble" : "") +
                 (object.quadruple_bubble ? " quadruple_bubble" : ""),
      dark: object.dark,
      size: 'xs'          
    })
  ) %>

  <% unless object.only_one %>
    <% if object.more_than_two && !object.bubble %>
      <%= 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"
      }) %>
    <% elsif object.bubble %>
      <% object.users.slice(1, 3).each_with_index do |item, idx| %>
        <%= pb_rails(
          "avatar",
          props: item.merge({
            classname: object.bubble_classname(idx),
            dark: object.dark
          })
        ) %>
      <% end %>
    <% else %>
      <%= pb_rails(
        "avatar",
        props: object.users[1].merge({
          classname: "pb_multiple_users_stacked_item second_item",
          dark: object.dark
        })
      ) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

245 entries across 245 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb