templates/admin.html (view raw)
1{{$domain := .Host}}
2{{template "header" .}}
3<h1>{{.PageTitle}}</h1>
4{{template "nav.html" .}}
5<br>
6{{ range .Users }}
7<a href="//{{.Username}}.{{$domain}}">{{.Username}}</a>
8{{ if not .Active }}
9<form action="/admin/user/{{.Username}}/activate" method="POST" class="inline">
10<input
11 class="button"
12 type="submit"
13 value="activate"
14/>
15</form>
16{{ end }}
17<form action="/admin/user/{{.Username}}/delete" method="POST" class="inline">
18<input
19 class="button delete"
20 type="submit"
21 onclick="return confirm('Are you SURE you want to delete this user?');"
22 value="delete"
23/>
24</form>
25<br>
26{{end}}
27
28{{template "footer" .}}