~gitpocket/gitpocket

4
c5a2e8a3f88d09ac380e1d245d568fb9ae34f511
mainfeed-discovery
gitpocket/templates/keys.html -rw-r--r--1.7 KiB ViewLogBlameView rawPermalink 2d63c31406 feat(basin): squash and rebase merges, collaborators, quota 1 months ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{{define "content"}}
<div class="panel"><h3>SSH keys</h3>
{{if .Data.Keys}}<table class="keys">{{range .Data.Keys}}<tr><td>{{.Title}}</td><td><code>{{.Fingerprint}}</code></td><td class="when">{{ago .Created}}</td><td><form method="post" action="/settings/keys/{{.ID}}/delete"><button class="btn danger">Remove</button></form></td></tr>{{end}}</table>{{end}}
<form method="post" action="/settings/keys" class="stack">
<label>SSH public key <textarea name="key" rows="3" required placeholder="ssh-ed25519 AAAA..."></textarea></label>
<label>Title <input name="title" placeholder="Defaults to the key comment"></label>
<small>Push with <code>{{.SSHUser}}@{{.Host}}:~{{.User.Name}}/repo</code> once the key is registered. Your keys are public at <a href="/~{{.User.Name}}.keys">~{{.User.Name}}.keys</a>.</small>
<div class="actions"><button class="btn primary">Add key ▸</button></div>
</form></div>
<div class="panel"><h3>PGP keys</h3>
{{if .Data.PGP}}<table class="keys">{{range .Data.PGP}}<tr><td><code>{{.Fingerprint}}</code></td><td class="when">{{ago .Created}}</td><td><form method="post" action="/settings/pgp/{{.ID}}/delete"><button class="btn danger">Remove</button></form></td></tr>{{end}}</table>{{end}}
<form method="post" action="/settings/pgp" class="stack">
<label>PGP public key <textarea name="key" rows="6" required placeholder="-----BEGIN PGP PUBLIC KEY BLOCK-----"></textarea></label>
<small>Export yours with <code>gpg --armor --export-options export-minimal --export you@example.org</code>. Commits signed by this key show as verified. Public at <a href="/~{{.User.Name}}.pgp">~{{.User.Name}}.pgp</a>.</small>
<div class="actions"><button class="btn primary">Add key ▸</button></div>
</form></div>
{{end}}