all repos — flounder @ 758676c26d0a87c9354a795aed370bc06b91be6b

A small site builder for the Gemini protocol

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    <p>Domain: {{.Domain}}</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" .}}