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/signout">Sign Out</a></li>
16 </ul>
17 {{ if .flashes.successes }}
18 <div class="alert alert-success margin-bottom-xs">
19 <p>{{ index .flashes.successes 0 }}</p>
20 </div>
21 {{ end }} {{ if eq (len .Tokens) 0 }}
22 <div class="alert alert-success" role="alert">
23 <p class="alert-message">You do not have any active OAuth sessions!</p>
24 </div>
25 {{ else }} {{ range .Tokens }}
26 <div class="base-container">
27 <h4>{{ .ClientId }}</h4>
28 <p>Created: {{ .CreatedAt }}</p>
29 <p>Updated: {{ .UpdatedAt }}</p>
30 <p>Expires: {{ .ExpiresAt }}</p>
31 <form action="/account/revoke" method="post">
32 <input type="hidden" name="token" value="{{ .Token }}" />
33 <button type="submit" value="">Revoke</button>
34 </form>
35 </div>
36 {{ end }} {{ end }}
37 </main>
38 </body>
39</html>