Sha256: 4dd2a25d2c597ef940f0c38baf4e59ebde0b4d4cd273b2889181a2c82c0f3849

Contents?: true

Size: 483 Bytes

Versions: 19

Compression:

Stored size: 483 Bytes

Contents

<%= content_tag(:div,
    id: object.id,
    data: object.data.merge(initials: object.initials),
    class: object.classname,
    aria: object.aria) do %>
  <%= content_tag(:div, data: { initials: object.initials }, class: "avatar_wrapper") do %>
    <%= pb_rails("image", props: { url: object.image_url, on_error: object.handle_img_error }) if object.image_url.present? %>
  <% end %>
  <%= pb_rails("online_status", props: object.online_status_props) if object.status %>
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
playbook_ui-8.1.3 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.1.2 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.3 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.2.0.pre.alpha2 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.1.1 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.2 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.2.0.pre.alpha1 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.1.0 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.1 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.0 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.0.pre.alpha5 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.0.pre.alpha4 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-8.0.0.pre.alpha1 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0.pre.alpha5 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0.pre.alpha4 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0.pre.alpha3 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0.pre.alpha2 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0.pre.alpha1 app/pb_kits/playbook/pb_avatar/avatar.html.erb
playbook_ui-7.16.0 app/pb_kits/playbook/pb_avatar/_avatar.html.erb