summaryrefslogtreecommitdiffstats
path: root/tpl/objects/status-indicator.pug
blob: 7ecb08aa3b6277cb70d3980c8381c8ce37414e87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
mixin status-indicator(status)
    -
        let classes = {
            'o-status-indicator': true,
        }
        classes['is-' + status] = true
        if (attributes.class) {
            classes[attributes.class] = true;
        }

    div(class=classes)