diff options
Diffstat (limited to 'tpl/objects/status-indicator.pug')
| -rw-r--r-- | tpl/objects/status-indicator.pug | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tpl/objects/status-indicator.pug b/tpl/objects/status-indicator.pug new file mode 100644 index 0000000..9b240e1 --- /dev/null +++ b/tpl/objects/status-indicator.pug | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | mixin status-indicator(status) | ||
| 2 | - | ||
| 3 | let classes = { | ||
| 4 | 'o-status-indicator': true, | ||
| 5 | } | ||
| 6 | classes['is-' + status] = true | ||
| 7 | |||
| 8 | div(class=classes)&attributes(attributes) | ||
