blob: 96231a7d631e4dfac74a4e1b57fc2aa99ebe55e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{{ define "content" }}
<div class="column">
<h2>Your existing SSH keys</h2>
<ul class="unstyled">
{{ $csrf := .CsrfField }}
{{ range .SSHKeys }}
<li class="sshkey">
<form method="post" action="">
<span class="sshfingerprint">{{ .Fingerprint }} {{ .Comment }}</span>
{{ $csrf }}
<input type="hidden" name="sshkey" value="{{ . }}">
<input type="submit" name="delete" value="❌" class="btn-delete">
</form>
<label for="show_full_{{.KeyEnd}}" class="keyend" title="Click for full key">Key ends in: {{ .KeyEnd }}</label>
<input id="show_full_{{.KeyEnd}}" type="radio" name="showfull" value="full" class="hidden">
<label class="fullkey">{{ . }} <input type="radio" name="showfull" value="end" class="hidden"></label>
</li>
{{ end }}
</ul>
</div>
<form method="post" autocomplete="off" class="column">
{{ $csrf }}
<p>Paste your SSH public keys (one key per line):</p>
<textarea name="ssh_keys"></textarea>
<input name="add_key" type="submit" class="form-element form-button" />
</form>
<div class="column full">
<a href=".">Back</a>
</div>
{{ end }}
|