all repos — flounder @ 2892b866cd0a7127e8aa8ef037e1a9dc405e2d79

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    <p>Created: {{unixTime .CreatedAt 0}}</p>
14{{ if not .Active }}
15<p>
16<form action="/admin/user/{{.Username}}/activate" method="POST" class="inline">
17<input
18  class="button"
19  type="submit"
20  value="activate"
21/>
22</form>
23</p>
24{{ end }}
25  <p>
26<form action="/admin/user/{{.Username}}/impersonate" method="POST" class="inline">
27<input
28  class="button"
29  type="submit"
30  value="impersonate"
31/>
32</form>
33</div>
34</details>
35{{end}}
36
37{{template "footer" .}}