all repos — flounder @ 2799ede93e92daa87144e345d5b086aac4e8c037

A small site builder for the Gemini protocol

templates/admin.html (view raw)

 1{{$domain := .Host}}
 2{{template "header" .}}
 3<h1>{{.PageTitle}}</h1>
 4{{template "nav.html" .}}
 5<br>
 6<table>
 7{{ range .Users }}
 8<tr>
 9  <td>
10<a href="//{{.Username}}.{{$domain}}">{{.Username}}</a>  
11<td><a href=mailto:{{.Email}}>{{.Email}}</a>
12</td>
13<td>
14{{ if not .Active }}
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{{ end }}
23</td>
24<td>
25<form action="/admin/user/{{.Username}}/delete" method="POST" class="inline">
26<input
27  class="button delete"
28  type="submit"
29  onclick="return confirm('Are you SURE you want to delete this user?');"
30  value="delete"
31/>
32</form>
33</td>
34</tr>
35{{end}}
36</table>
37
38{{template "footer" .}}