2019-01-05 03:28:29 +00:00
|
|
|
{{define "users"}}
|
|
|
|
{{template "header" .}}
|
|
|
|
|
|
|
|
<div class="snug content-container">
|
|
|
|
{{template "admin-header" .}}
|
|
|
|
|
2023-03-05 07:23:27 +00:00
|
|
|
<!-- TODO: if other use for flashes use pattern like account_import.go -->
|
2019-11-05 18:44:06 +00:00
|
|
|
{{if .Flashes}}
|
|
|
|
<p class="alert success">
|
|
|
|
{{range .Flashes}}{{.}}{{end}}
|
|
|
|
</p>
|
|
|
|
{{end}}
|
2020-02-25 18:06:55 +00:00
|
|
|
<div class="row admin-actions" style="justify-content: space-between;">
|
|
|
|
<span style="font-style: italic; font-size: 1.2em">{{.TotalUsers}} {{pluralize "user" "users" .TotalUsers}}</span>
|
|
|
|
<a class="btn cta" href="/me/invites">+ Invite people</a>
|
|
|
|
</div>
|
2019-01-05 03:28:29 +00:00
|
|
|
|
2019-01-05 14:37:53 +00:00
|
|
|
<table class="classy export" style="width:100%">
|
2019-01-05 03:28:29 +00:00
|
|
|
<tr>
|
|
|
|
<th>User</th>
|
|
|
|
<th>Joined</th>
|
|
|
|
<th>Type</th>
|
2019-08-28 19:37:45 +00:00
|
|
|
<th>Status</th>
|
2019-01-05 03:28:29 +00:00
|
|
|
</tr>
|
|
|
|
{{range .Users}}
|
|
|
|
<tr>
|
|
|
|
<td><a href="/admin/user/{{.Username}}">{{.Username}}</a></td>
|
|
|
|
<td>{{.CreatedFriendly}}</td>
|
|
|
|
<td style="text-align:center">{{if .IsAdmin}}Admin{{else}}User{{end}}</td>
|
2019-11-11 15:16:44 +00:00
|
|
|
<td style="text-align:center">{{if .IsSilenced}}Silenced{{else}}Active{{end}}</td>
|
2019-01-05 03:28:29 +00:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
|
|
|
|
2020-08-19 20:24:37 +00:00
|
|
|
<nav class="pager pages">
|
2019-01-05 14:37:53 +00:00
|
|
|
{{range $n := .TotalPages}}<a href="/admin/users{{if ne $n 1}}?p={{$n}}{{end}}" {{if eq $.CurPage $n}}class="selected"{{end}}>{{$n}}</a>{{end}}
|
|
|
|
</nav>
|
|
|
|
|
2019-01-05 03:28:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "footer" .}}
|
|
|
|
{{end}}
|