summaryrefslogtreecommitdiffstats
path: root/tpl/objects/bubble-group.pug
blob: c2e502a035fd225fd54eb8326fcd55a30110ae87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mixin bubble-group(user)
    -
        let first = true 

    mixin bubble-group-bubble(time)
        +bubble(time, first ? user : undefined)(class='l-bubble-group__bubble')
            block
        -
            first = false

    -
        let classes = {
            'l-bubble-group': true
        }
        if (attributes.class) {
            classes[attributes.class] = true
        }

    section(class=classes)
        .l-bubble-group__avatar
            +avatar= user.slice(0, 2)
        block