Microservice to bring 2FA to self hosted PDSes
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="utf-8"/>
5 <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, viewport-fit=cover"/>
6 <meta name="referrer" content="origin-when-cross-origin"/>
7 <title>Accounts - {{pds_hostname}}</title>
8 <link rel="stylesheet" href="/admin/static/css/admin.css">
9</head>
10<body>
11<div class="layout">
12 {{> admin/partials/sidebar.hbs}}
13
14 <main class="main">
15 {{> admin/partials/flash.hbs}}
16
17 <h1 class="page-title">Accounts</h1>
18
19 <form class="search-form" method="GET" action="/admin/accounts/lookup">
20 <input type="text" name="direct_lookup" placeholder="Direct lookup by did or handle"/>
21 <button type="submit" class="btn btn-primary">Lookup</button>
22 </form>
23
24
25 {{#if accounts}}
26 <div class="table-container">
27 <table>
28 <thead>
29 <tr>
30 <th>Handle</th>
31 <th>DID</th>
32 <th>Email</th>
33 <th>Status</th>
34 </tr>
35 </thead>
36 <tbody>
37 {{#each accounts}}
38 <tr>
39 <td><a href="/admin/accounts/{{this.did}}">{{this.handle}}</a></td>
40 <td class="did-cell">{{this.did}}</td>
41 <td>{{this.email}}</td>
42 <td>
43 {{#if (or this.is_taken_down (eq this.status "takedown"))}}
44 <span class="badge badge-danger">Taken Down</span>
45 {{/if}}
46 {{#if (or this.deactivatedAt (eq this.status "deactivated"))}}
47 <span class="badge badge-warning">Deactivated</span>
48 {{/if}}
49 {{#if (and (not this.is_taken_down) (not (eq this.status "takedown")) (not this.deactivatedAt) (not (eq this.status "deactivated")))}}
50 <span class="badge badge-success">Active</span>
51 {{/if}}
52 </td>
53 </tr>
54 {{/each}}
55 </tbody>
56 </table>
57 </div>
58
59 {{#if (or has_prev has_next)}}
60 <div class="pagination">
61 {{#if has_prev}}
62 <a href="{{prev_url}}" class="btn btn-small">← Previous</a>
63 {{/if}}
64 <span class="pagination-info">Showing {{account_count}} accounts</span>
65 {{#if has_next}}
66 <a href="{{next_url}}" class="btn btn-small">Next →</a>
67 {{/if}}
68 </div>
69 {{/if}}
70 {{else}}
71 <div class="empty-state">
72 No accounts found
73 </div>
74 {{/if}}
75 </main>
76</div>
77</body>
78</html>