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" />
6 <meta name="color-scheme" content="light dark" />
7 <link rel="stylesheet" href="/static/pico.css" />
8 <link rel="stylesheet" href="/static/style.css" />
9 <title>Your Account</title>
10 </head>
11 <body class="margin-top-md">
12 <main class="container base-container authorize-container margin-top-xl">
13 <h2>Welcome, {{ .Repo.Handle }}</h2>
14 <ul>
15 <li><a href="/account/totp-enroll">Enroll in TOTP</a></li>
16 <li><a href="/account/signout">Sign Out</a></li>
17 </ul>
18 {{ if .flashes.successes }}
19 <div class="alert alert-success margin-bottom-xs">
20 <p>{{ index .flashes.successes 0 }}</p>
21 </div>
22 {{ end }} {{ if eq (len .Tokens) 0 }}
23 <div class="alert alert-success" role="alert">
24 <p class="alert-message">You do not have any active OAuth sessions!</p>
25 </div>
26 {{ else }} {{ range .Tokens }}
27 <div class="base-container">
28 <h4>{{ .ClientId }}</h4>
29 <p>Created: {{ .CreatedAt }}</p>
30 <p>Updated: {{ .UpdatedAt }}</p>
31 <p>Expires: {{ .ExpiresAt }}</p>
32 <form action="/account/revoke" method="post">
33 <input type="hidden" name="token" value="{{ .Token }}" />
34 <button type="submit" value="">Revoke</button>
35 </form>
36 </div>
37 {{ end }} {{ end }}
38 </main>
39 </body>
40</html>