Refactor web server and release workflow

This commit is contained in:
2026-07-14 18:35:24 +01:00
parent 9070ded66d
commit 4e0e87c86c
76 changed files with 616 additions and 84 deletions
+62
View File
@@ -0,0 +1,62 @@
<div class="page-header">
<div>
<h2>Users</h2>
<p>Create accounts, rename users, reset passwords, and remove unused logins.</p>
</div>
<div class="page-toolbar">
<a class="button-link" href="/admin/users/new">Add user</a>
</div>
</div>
<div class="card">
<h3>Existing users</h3>
<table class="table-cards users-table">
<thead>
<tr>
<th>User</th>
<th>Name</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{{#if users.length}}
{{#each users}}
<tr>
<td data-label="User">
<div class="user-cell">
<div class="user-avatar user-avatar--small" aria-hidden="true">{{usernameInitial name}}</div>
<div>
<strong>{{username}}</strong>
{{#if isCurrentUser}}
<div class="subtle">Current signed-in user</div>
{{/if}}
</div>
</div>
</td>
<td data-label="Name">
<div class="user-cell">
<div>
<strong>{{#if name}}{{name}}{{else}}-{{/if}}</strong>
</div>
</div>
</td>
<td data-label="Actions">
<div class="actions users-row-actions">
{{#unless isCurrentUser}}
<a class="button-link list-action" href="/admin/users/{{id}}/edit">Edit</a>
<form method="post" action="/admin/users/{{id}}/delete" class="inline-form" data-confirm-message="Delete {{username}}?">
<button type="submit" class="button-link list-action is-danger">Delete</button>
</form>
{{else}}
<span class="empty">Protected</span>
{{/unless}}
</div>
</td>
</tr>
{{/each}}
{{else}}
<tr><td colspan="3" class="empty">No users found.</td></tr>
{{/if}}
</tbody>
</table>
</div>