diff options
Diffstat (limited to 'tpl/objects/message-group.pug')
| -rw-r--r-- | tpl/objects/message-group.pug | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tpl/objects/message-group.pug b/tpl/objects/message-group.pug new file mode 100644 index 0000000..e5e055c --- /dev/null +++ b/tpl/objects/message-group.pug | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | mixin message-group(user) | ||
| 2 | - | ||
| 3 | let classes = { | ||
| 4 | 'l-message-group': true, | ||
| 5 | 'l-message-group--compact': attributes.compact, | ||
| 6 | 'l-message-group--left': attributes.left, | ||
| 7 | 'l-message-group--right': attributes.right, | ||
| 8 | 'l-message-group--arrow': attributes.arrow, | ||
| 9 | 'l-message-group--group': attributes.group, | ||
| 10 | 'l-message-group--merge': attributes.merge | ||
| 11 | } | ||
| 12 | if (attributes.class) { | ||
| 13 | classes[attributes.class] = true | ||
| 14 | } | ||
| 15 | |||
| 16 | section(class=classes) | ||
| 17 | .l-message-group__avatar.u-p-sticky-top | ||
| 18 | +avatar= user.slice(0, 2) | ||
| 19 | block | ||
