import other kontor repos into directories
This commit is contained in:
committed by
Thomas Peetz
parent
28746adfbb
commit
b424e95e05
@@ -0,0 +1,38 @@
|
||||
{{ define "kontor/users.html" }}
|
||||
{{ template "header.html" .}}
|
||||
{{ template "admin-menu.html" .}}
|
||||
<ul class="nav nav-tabs">
|
||||
<li role="presentation" class="active"><a href="/admin/user">User</a></li>
|
||||
<li role="presentation"><a href="/admin/data">Data</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="panel panel-default container">
|
||||
<table class="table">
|
||||
<caption>Registered users of Kontor</caption>
|
||||
<tr>
|
||||
<th scope="col">Username</th>
|
||||
<th scope="col">First Name</th>
|
||||
<th scope="col">Last Name</th>
|
||||
<th scope="col">Administrator</th>
|
||||
</tr>
|
||||
{{range .payload }}
|
||||
<tr>
|
||||
<td><a href="/admin/user/view/{{.ID.Hex}}">{{.Username}}</a></td>
|
||||
<td>{{.Firstname}}</td>
|
||||
<td>{{.Lastname}}</td>
|
||||
{{ if .IsAdmin}}
|
||||
<td><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></td>
|
||||
{{end}}
|
||||
{{ if not .IsAdmin }}
|
||||
<td><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></td>
|
||||
{{end}}
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
<div class="panel-body">
|
||||
<a href="/admin/user/create">Add entry</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ template "footer.html" .}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user