gitlab-org--gitlab-foss/app/components/pajamas/avatar_component.html.haml

12 lines
249 B
Text

- 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