ictgj-voting/templates/admin-clients.html

33 lines
1.1 KiB
HTML
Raw Normal View History

{{ if not .TemplateData.Clients }}
2017-07-28 19:36:14 +00:00
<div class="space-vertical">No additional clients have been authenticated</div>
{{ else }}
2017-07-28 19:36:14 +00:00
<table id="clients-table" class="sortable pure-table pure-table-bordered center">
2017-06-08 17:20:43 +00:00
<thead>
<tr>
2018-06-18 13:49:15 +00:00
<th>Auth</th>
<th>Name</th>
<th class="only-large">Client ID</th>
<th class="only-large">Last Known IP</th>
<th class="only-large">Authenticated</th>
2017-06-08 17:20:43 +00:00
</tr>
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Clients }}
<tr>
<td>
2017-07-28 19:36:14 +00:00
{{ if $v.Auth }}
<a href="/admin/clients/{{ $v.UUID }}/deauth" class="primary"><i class="fa fa-2 fa-toggle-on"></i></a>
{{ else }}
<a href="/admin/clients/{{ $v.UUID }}/auth" class="error"><i class="fa fa-2 fa-toggle-off"></i></a>
{{ end }}
2017-06-08 17:20:43 +00:00
</td>
2018-06-18 13:49:15 +00:00
<td>{{ $v.Name }}<p class="only-small">({{ $v.UUID }})</p></td>
<td class="only-large">{{ $v.UUID }}</td>
<td class="only-large">{{ $v.IP }}</td>
<td class="only-large">{{ if $v.Auth }} Yes {{ else }} No {{ end }}</td>
2017-06-08 17:20:43 +00:00
</tr>
{{ end }}
</tbody>
</table>
{{ end }}