diff options
author | Volpeon <git@volpeon.ink> | 2023-01-26 15:23:52 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-26 15:23:52 +0100 |
commit | a1870a62f262dad9affcfebec1e07168c022ae5d (patch) | |
tree | 266f463bfa14f13642ffda9b29d3123560fdc33f /tpl/objects | |
parent | Fix (diff) | |
download | iro-design-a1870a62f262dad9affcfebec1e07168c022ae5d.tar.gz iro-design-a1870a62f262dad9affcfebec1e07168c022ae5d.tar.bz2 iro-design-a1870a62f262dad9affcfebec1e07168c022ae5d.zip |
Avatar
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/avatar.pug | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tpl/objects/avatar.pug b/tpl/objects/avatar.pug index a2ff941..19439bb 100644 --- a/tpl/objects/avatar.pug +++ b/tpl/objects/avatar.pug | |||
@@ -3,9 +3,10 @@ include ../objects/status-indicator.pug | |||
3 | mixin avatar | 3 | mixin avatar |
4 | - | 4 | - |
5 | let classes = { | 5 | let classes = { |
6 | 'o-avatar': true, | 6 | 'o-avatar': true, |
7 | 'o-avatar--circle': attributes.circle, | 7 | 'o-avatar--colored': true, |
8 | 'u-d-block': attributes.block | 8 | 'o-avatar--circle': attributes.circle, |
9 | 'u-d-block': attributes.block | ||
9 | } | 10 | } |
10 | if (attributes.class) { | 11 | if (attributes.class) { |
11 | classes[attributes.class] = true; | 12 | classes[attributes.class] = true; |
@@ -19,7 +20,7 @@ mixin avatar | |||
19 | styles['--avatar--colors--h'] = attributes.hue; | 20 | styles['--avatar--colors--h'] = attributes.hue; |
20 | } | 21 | } |
21 | 22 | ||
22 | div(class=classes style=styles) | 23 | a(class=classes style=styles href=attributes.href) |
23 | if attributes.status | 24 | if attributes.status |
24 | +status-indicator(attributes.status)(class='o-avatar__status') | 25 | +status-indicator(attributes.status)(class='o-avatar__status') |
25 | if attributes.src | 26 | if attributes.src |