summaryrefslogtreecommitdiffstats
path: root/tpl/views/menu.pug
blob: 4d7444fc72ac77a3543afc47acb3b0a5b18c7a5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
mixin view-menu 
    +view('menu', 'Menu')
        .c-box
            div(style={ display: 'flex', gap: '3rem' })
                +menu
                    +menu-header= 'Category 1'
                    +menu-item= 'Mark as away'
                    +menu-item= 'Delete'

                    +menu-header= 'Category 2'
                    +menu-item(icon='bookmark')= 'Bookmark'
                    +menu-item(icon='tags')= 'Tags'

                +menu
                    +menu-item(header=true)
                        = 'Bouncer'

                    +menu-separator

                    +menu-item(header=true)
                        = 'Libera'
                    +menu-item(icon='hash')
                        = 'achannel'
                        +badge('primary')(menu=true)= '12 '
                    +menu-item(icon='hash')
                        = 'kitsuneirc'
                        +badge(menu=true)= '31 '
                    +menu-item(icon='green' iconIsStatus=true)
                        = 'volpeon'
                    +menu-item(icon='red' iconIsStatus=true)
                        = 'someone'

                    +menu-separator

                    +menu-item(header=true)
                        = 'Ergo Testnet'

                    +menu-separator

                    +menu-item(header=true)
                        = 'NixNet'

                +menu
                    +menu-header= 'Operators'
                    +menu-item
                        +user-card('volpeon', 0)
                    +menu-item
                        +user-card('curiousfox', 90)

                    +menu-header= 'Moderators'
                    +menu-item
                        +user-card('user3567', 135)
                    +menu-item
                        +user-card('johndoe', 270)