ictgj-voting/templates/admin-menu.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2017-06-08 17:20:43 +00:00
<div id="menu" class="{{if .HideAdminMenu}}hidden{{end}}">
2017-04-03 21:32:13 +00:00
<div class="pure-menu">
<a href="#menu" class="menu-button">
<i class="fa fa-bars"></i>
</a>
<div class="menu-container">
<ul class="pure-menu-list">
{{ range $k, $v := .Menu }}
<li class="pure-menu-item">
<a href="{{ $v.Location }}" class="pure-menu-link"><i class="fa {{ $v.Icon }}"></i> {{ $v.Label }}</a>
</li>
{{ end }}
</ul>
2017-06-15 17:35:53 +00:00
{{ if .ClientIsAuth }}
{{ if not .ClientIsServer }}
2017-06-30 19:35:36 +00:00
<a href="/admin/clients/{{.ClientId}}/remove" class="pure-menu-link"><i class="fa fa-key"></i> DeAuth Client</a>
2017-06-15 17:35:53 +00:00
{{ end }}
{{ else }}
2017-06-30 19:35:36 +00:00
<a href="/admin/clients/{{.ClientId}}/add" class="pure-menu-link"><i class="fa fa-key"></i> Auth Client</a>
2017-06-15 17:35:53 +00:00
{{ end }}
2017-04-03 21:32:13 +00:00
<ul class="pure-menu-list menu-bottom">
{{ range $k, $v := .BottomMenu }}
<li class="pure-menu-item">
<a href="{{ $v.Location }}" class="pure-menu-link"><i class="fa {{ $v.Icon }}"></i> {{ $v.Label }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
</div>