From a1870a62f262dad9affcfebec1e07168c022ae5d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 26 Jan 2023 15:23:52 +0100 Subject: Avatar --- tpl/objects/avatar.pug | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tpl/objects') 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 mixin avatar - let classes = { - 'o-avatar': true, - 'o-avatar--circle': attributes.circle, - 'u-d-block': attributes.block + 'o-avatar': true, + 'o-avatar--colored': true, + 'o-avatar--circle': attributes.circle, + 'u-d-block': attributes.block } if (attributes.class) { classes[attributes.class] = true; @@ -19,7 +20,7 @@ mixin avatar styles['--avatar--colors--h'] = attributes.hue; } - div(class=classes style=styles) + a(class=classes style=styles href=attributes.href) if attributes.status +status-indicator(attributes.status)(class='o-avatar__status') if attributes.src -- cgit v1.2.3-70-g09d2