1d30605533
test / test (push) Has been cancelled
Settings moves to /settings with a 308 redirect from /account; domains, Status, Users, and user forms get matching browser titles and h1 text; backup page title reflects domain import. Co-Authored-By: Composer <noreply@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
819 B
HTML
29 lines
819 B
HTML
{{define "content"}}
|
|
<h1>Users</h1>
|
|
|
|
{{if .Flash}}<div class="flash">{{.Flash}}</div>{{end}}
|
|
|
|
<div class="card">
|
|
<p><a href="/users/new">Create user</a></p>
|
|
{{if .Users}}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Username</th><th>Role</th><th>Domains</th><th></th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Users}}
|
|
<tr>
|
|
<td>{{.User.Username}}</td>
|
|
<td>{{if eq .User.Role "global"}}Global{{else}}Domain admin{{end}}</td>
|
|
<td class="muted">{{if eq .User.Role "global"}}All{{else}}{{range $i, $n := .DomainNames}}{{if $i}}, {{end}}{{$n}}{{end}}{{end}}</td>
|
|
<td class="actions"><a href="/users/{{.User.ID}}">Edit</a></td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
{{else}}
|
|
<p class="muted">No panel users besides the global administrator yet.</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|