- Introduced `web/templates/` for HTMX-fragmented pages (`dashboard`, `accounts`, `account_detail`, `error_fragment`, etc.). - Implemented UI routes for account CRUD, audit log display, and login/logout with CSRF protection. - Added `internal/ui/` package for handlers, CSRF manager, session validation, and token issuance. - Updated documentation to include new UI features and templates directory structure. - Security: Double-submit CSRF cookies, constant-time HMAC validation, login password/Argon2id re-verification at all steps to prevent bypass.
15 lines
724 B
HTML
15 lines
724 B
HTML
{{define "audit_rows"}}
|
|
{{range .Events}}
|
|
<tr>
|
|
<td class="text-small text-muted">{{formatTime .EventTime}}</td>
|
|
<td><code style="font-size:.8rem">{{.EventType}}</code></td>
|
|
<td class="text-small text-muted">{{if .ActorUsername}}{{.ActorUsername}}{{else}}—{{end}}</td>
|
|
<td class="text-small text-muted">{{if .TargetUsername}}{{.TargetUsername}}{{else}}—{{end}}</td>
|
|
<td class="text-small text-muted">{{.IPAddress}}</td>
|
|
<td class="text-small text-muted" style="max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{.Details}}</td>
|
|
</tr>
|
|
{{else}}
|
|
<tr><td colspan="6" class="text-muted text-small" style="text-align:center;padding:2rem">No events found.</td></tr>
|
|
{{end}}
|
|
{{end}}
|