this repo has no description
1{{ define "keys" }}
2<html>
3 {{ template "head" . }}
4
5 <body>
6 <main>
7 <form>
8 <p>
9 Give your key a name and paste your
10 <strong>public</strong> key here. This is what you'll use to
11 push to your Git repository.
12 </p>
13 <div id="keys"></div>
14 <div>
15 <input
16 type="text"
17 id="name"
18 name="name"
19 placeholder="my laptop"
20 />
21 <input
22 type="text"
23 id="public_key"
24 name="key"
25 placeholder="ssh-ed25519 AAABBBHUNTER2..."
26 />
27 </div>
28 <button hx-put="/settings/keys" hx-swap="none" type="submit">
29 Submit
30 </button>
31 </form>
32 <table>
33 <thead>
34 <tr>
35 <th>Key</th>
36 <th>Name</th>
37 <th>Created</th>
38 </tr>
39 </thead>
40 <tbody>
41 {{ range .keys }}
42 <tr>
43 <td>{{ .Name }}</td>
44 <td>{{ .Created }}</td>
45 <td>{{ .Key }}</td>
46 </tr>
47 {{ end }}
48 </tbody>
49 </table>
50 </main>
51 </body>
52</html>
53{{ end }}