templates/admin.html (view raw)
1{{template "header" .}}
2<h1>Admin</h1>
3{{template "nav.html" .}}
4<br>
5{{ range .Users }}
6<details>
7 <summary><b>{{.Username}}</b> {{if not .Active}}<em>(inactive)</em>{{end}}</summary>
8 <div class="user-admin-details">
9 <p>Home: <a href="//{{.Username}}.{{$.Config.Host}}">{{.Username}}</a> </p>
10 <p>Email: <a href=mailto:{{.Email}}>{{.Email}}</a></p>
11 <p>Reference: {{.Reference}}</p>
12{{ if not .Active }}
13<p>
14<form action="/admin/user/{{.Username}}/activate" method="POST" class="inline">
15<input
16 class="button"
17 type="submit"
18 value="activate"
19/>
20</form>
21</p>
22{{ end }}
23 <p>
24<form action="/admin/user/{{.Username}}/impersonate" method="POST" class="inline">
25<input
26 class="button"
27 type="submit"
28 value="impersonate"
29/>
30</form>
31</div>
32</details>
33{{end}}
34
35{{template "footer" .}}