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.0.pre.rc.17 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb