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

{{template "footer" .}}