Address production-readiness review: clearer errors, safer votes, and ops hardening.
Distinguish auth/lookup failures, make votes idempotent on visible questions, bound shutdown, page admin users, LRU throttle, trusted-proxy CIDRs, avatar cleanup, versioned migrations, and session cleanup logging.
This commit is contained in:
@@ -4,6 +4,11 @@
|
||||
<p class="eyebrow">Admin</p>
|
||||
<h1>Users</h1>
|
||||
{{if .Error}}<p class="banner error" role="alert">{{.Error}}</p>{{end}}
|
||||
<form class="ask" method="get" action="/admin/users" style="margin-bottom:1.5rem">
|
||||
<label for="q">Search</label>
|
||||
<input id="q" name="q" type="search" value="{{.Search}}" placeholder="username or name">
|
||||
<button type="submit" class="btn btn-primary">Search</button>
|
||||
</form>
|
||||
<div class="admin-users">
|
||||
<table class="user-table">
|
||||
<thead>
|
||||
@@ -40,6 +45,9 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{if .HasMore}}
|
||||
<p><a href="{{.NextCursor}}">Next page</a></p>
|
||||
{{end}}
|
||||
</main>
|
||||
{{template "footer" .}}
|
||||
{{end}}
|
||||
|
||||
Reference in New Issue
Block a user