diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/index.pug | 1 | ||||
-rw-r--r-- | tpl/objects/action-menu.pug | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tpl/index.pug b/tpl/index.pug index 1b10016..5112f87 100644 --- a/tpl/index.pug +++ b/tpl/index.pug | |||
@@ -447,6 +447,7 @@ html | |||
447 | +action-button(quiet=true selected=true)= 'Menu' | 447 | +action-button(quiet=true selected=true)= 'Menu' |
448 | +action-menu | 448 | +action-menu |
449 | +action-menu-item(icon='user')= 'View profile' | 449 | +action-menu-item(icon='user')= 'View profile' |
450 | +action-menu-item(icon='red' iconIsStatus=true)= 'Mark as away' | ||
450 | +action-menu-separator | 451 | +action-menu-separator |
451 | +action-menu-item(icon='trash')= 'Delete' | 452 | +action-menu-item(icon='trash')= 'Delete' |
452 | +action-menu-item(icon='bookmark')= 'Bookmark' | 453 | +action-menu-item(icon='bookmark')= 'Bookmark' |
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 6ab4e0d..e236b7c 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug | |||
@@ -1,5 +1,6 @@ | |||
1 | include ../objects/action-button.pug | 1 | include action-button.pug |
2 | include icon.pug | 2 | include icon.pug |
3 | include status-indicator.pug | ||
3 | 4 | ||
4 | mixin action-menu | 5 | mixin action-menu |
5 | - | 6 | - |
@@ -17,7 +18,10 @@ mixin action-menu-item | |||
17 | .l-card.l-card--flush | 18 | .l-card.l-card--flush |
18 | .l-card__block.o-action-menu__icon-slot | 19 | .l-card__block.o-action-menu__icon-slot |
19 | if attributes.icon | 20 | if attributes.icon |
20 | +icon(attributes.icon)(class='o-action-menu__icon') | 21 | if attributes.iconIsStatus |
22 | +status-indicator(attributes.icon)(class='o-action-menu__icon') | ||
23 | else | ||
24 | +icon(attributes.icon)(class='o-action-menu__icon') | ||
21 | .l-card__block.l-card__block--main | 25 | .l-card__block.l-card__block--main |
22 | block | 26 | block |
23 | .l-card__block.o-action-menu__icon-slot | 27 | .l-card__block.o-action-menu__icon-slot |