debian-mirror-gitlab/app/components/pajamas/avatar_component.html.haml
2022-08-27 11:52:29 +05:30

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