ictgj-voting/templates/admin-menu.html
Brian Buller ba35073d95 2017-06-22 Build
* Use 'https://github.com/mjibson/esc' for embedded assets
* Pull database name out of siteData object
* Load site config from database, if available
* Allow customizing site config from command line arguments
* Clean up some templates
* Update Readme (it still needs a lot of updating)
* Started work on vote accumulation/management
2017-06-22 10:34:57 -05:00

31 lines
1.1 KiB
HTML

<div id="menu" class="{{if .HideAdminMenu}}hidden{{end}}">
<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>
{{ if .ClientIsAuth }}
{{ if not .ClientIsServer }}
<a href="/admin/clients/{{.ClientID}}/remove" class="pure-menu-link"><i class="fa fa-key"></i> DeAuth Client</a>
{{ end }}
{{ else }}
<a href="/admin/clients/{{.ClientID}}/add" class="pure-menu-link"><i class="fa fa-key"></i> Auth Client</a>
{{ end }}
<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>