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<details>
8 <summary><b>{{.Username}}</b> {{if not .Active}}<em>(inactive)</em>{{end}}</summary>
9 <div class="user-admin-details">
10 <p>Home: <a href="//{{.Username}}.{{$domain}}">{{.Username}}</a> </p>
11 <p>Email: <a href=mailto:{{.Email}}>{{.Email}}</a></p>
12 <p>Reference: {{.Reference}}</p>
13{{ if not .Active }}
14<p>
15<form action="/admin/user/{{.Username}}/activate" method="POST" class="inline">
16<input
17 class="button"
18 type="submit"
19 value="activate"
20/>
21</form>
22</p>
23{{ end }}
24 <p>
25<form action="/admin/user/{{.Username}}/impersonate" method="POST" class="inline">
26<input
27 class="button"
28 type="submit"
29 value="impersonate"
30/>
31</form>
32</div>
33</details>
34{{end}}
35
36{{template "footer" .}}