summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/avatar.pug9
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
3mixin avatar 3mixin 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