diff options
Diffstat (limited to 'tpl/objects/bubble.pug')
-rw-r--r-- | tpl/objects/bubble.pug | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | mixin bubble(time, user) | ||
2 | - | ||
3 | let classes = { | ||
4 | 'o-bubble': true, | ||
5 | 't-raised': true | ||
6 | } | ||
7 | if (attributes.class) { | ||
8 | classes[attributes.class] = true | ||
9 | } | ||
10 | |||
11 | article(class=classes) | ||
12 | if user | ||
13 | header.o-bubble__user | ||
14 | strong= user | ||
15 | span.s-colored-links | ||
16 | block | ||
17 | small.o-bubble__time | ||
18 | = time | ||
19 | if attributes.scope | ||
20 | = ' ' | ||
21 | +icon(attributes.scope) | ||