summaryrefslogtreecommitdiff
path: root/web/kvm/navbar.pug
blob: 3e38c93b37c6efb275643e398ecf32117e97045a (plain)
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
mixin navbar_led(id, icon, cls="led-gray")
	img(data-dont-hide-menu id=id, class=cls src=`${svg_dir}/${icon}.svg`)

mixin menu_message(icon, short, classes="")
	div(class="text")
		table
			tr
				td(rowspan="2") #[img(class=`sign ${classes}` src=`${svg_dir}/${icon}.svg`)]
				td(style="line-height:1.5") #[b #{short}]
			if block
				tr
					td
						sup(style="line-height:1")
							block

mixin switch(id)
	div(class="switch-box")
		input(checked type="checkbox" id=id class="switch-checkbox")
		label(class="switch-label" for=id)
			span(class="switch-inner")
			span(class="switch")

ul(id="navbar")
	li(class="left")
		a(id="logo" href="/") ←  
			img(class="svg-gray" src=`${svg_dir}/logo.svg` alt="π-kvm")

	include navbar-health.pug

	include navbar-system.pug
	include navbar-atx.pug
	include navbar-msd.pug
	include navbar-macro.pug
	include navbar-shortcuts.pug