summaryrefslogtreecommitdiff
path: root/app/components/pajamas/avatar_component.html.haml
blob: 502f673fe2c116dc7acfcec15f095d0b07d607b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- if src
  = image_tag src,
    srcset: srcset,
    alt: alt,
    class: avatar_classes,
    height: @size,
    width: @size,
    loading: "lazy",
    **@avatar_options
- else
  %div{ @avatar_options, alt: alt, class: avatar_classes }
    = initial