plz / templates / user / ssh / keys / list.html
42 lines · 36 sloc · 984 bytes · a449238961bbd5f9081831ef9db1ac936909a3e8
Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 @include '../../../layout/head.html'
5 </head>
6 <body>
7 @include '../../../layout/header.html'
8
9 .form-error {
10 @ctx.form_error
11 }
12
13 <div class="content">
14 <h1>SSH keys</h1>
15
16 <a href="/${ctx.user.username}/settings">Public profile</a>
17 |
18 <a href="/${ctx.user.username}/settings/ssh-keys">SSH keys</a>
19
20 <div class="new-ssh-key-block">
21 <a href="/${ctx.user.username}/settings/ssh-keys/new">
22 <button>New SSH key</button>
23 </a>
24 </div>
25
26 @if ssh_keys.len == 0
27 <p>There are no SSH keys associated with your account.</p>
28 @else
29 @for ssh_key in ssh_keys
30 <div class="ssh-key">
31 <h3>@ssh_key.title</h3>
32 <p>@ssh_key.created_at.relative()</p>
33 <button class="ssh-key-remove" data-id="@ssh_key.id" data-username="@ctx.user.username" data-title="@ssh_key.title">Remove</button>
34 </div>
35 @end
36 @end
37 </div>
38
39 @js '/js/ssh-list.js'
40 @include '../../../layout/footer.html'
41 </body>
42</html>
43