Making progress

This commit is contained in:
2017-06-08 12:20:43 -05:00
parent abd7e803e9
commit 9a77a25342
21 changed files with 440 additions and 194 deletions

View File

@@ -0,0 +1,28 @@
<table id="clients-table" class="hidden sortable pure-table pure-table-bordered center">
<thead>
<tr>
<th>Client ID</th>
<th>Last Known IP</th>
</tr>
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Clients }}
<tr>
<td>{{ $v.Id }}</td>
<td>{{ $v.Ip }}</td>
<td>
<a href="/admin/clients/{{ $v.UUID }}/deauth" class="pure-button pure-button-plain"><i class="fa fa-trash"></i></a>
</td>
</tr>
{{ end }}
</tbody>
</table>
<script>
snack.ready(function() {
var tableBody = document.querySelector("#clients-table>tbody");
if(tableBody.children.length>0) {
// Show the table
document.getElementById('clients-table').classList.remove('hidden');
}
});
</script>