From cac07ec50d360f3916e84bc3af6164ef07ac2f83 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 27 Mar 2022 11:23:45 +0200 Subject: Update --- tpl/objects/bubble.pug | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tpl/objects/bubble.pug (limited to 'tpl/objects/bubble.pug') diff --git a/tpl/objects/bubble.pug b/tpl/objects/bubble.pug new file mode 100644 index 0000000..a79f119 --- /dev/null +++ b/tpl/objects/bubble.pug @@ -0,0 +1,21 @@ +mixin bubble(time, user) + - + let classes = { + 'o-bubble': true, + 't-raised': true + } + if (attributes.class) { + classes[attributes.class] = true + } + + article(class=classes) + if user + header.o-bubble__user + strong= user + span.s-colored-links + block + small.o-bubble__time + = time + if attributes.scope + = ' ' + +icon(attributes.scope) -- cgit v1.2.3-54-g00ecf