| 1 |
{% if ssh_keys.is_empty() %} |
| 2 |
<p class="ssh-keys-empty">No SSH keys registered.</p> |
| 3 |
{% else %} |
| 4 |
<table class="ssh-keys-table"> |
| 5 |
<thead> |
| 6 |
<tr> |
| 7 |
<th>Fingerprint</th> |
| 8 |
<th>Label</th> |
| 9 |
<th>Added</th> |
| 10 |
<th class="ssh-keys-th-actions"></th> |
| 11 |
</tr> |
| 12 |
</thead> |
| 13 |
<tbody> |
| 14 |
{% for key in ssh_keys %} |
| 15 |
<tr> |
| 16 |
<td class="ssh-keys-fingerprint">{{ key.fingerprint }}</td> |
| 17 |
<td>{{ key.label }}</td> |
| 18 |
<td class="ssh-keys-added">{{ key.created_at }}</td> |
| 19 |
<td class="ssh-keys-actions"> |
| 20 |
<button class="btn-danger small" |
| 21 |
hx-delete="/api/users/me/ssh-keys/{{ key.id }}" |
| 22 |
hx-target="#ssh-keys-list" |
| 23 |
hx-swap="innerHTML" |
| 24 |
hx-confirm="Remove this SSH key?">Remove</button> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
{% endfor %} |
| 28 |
</tbody> |
| 29 |
</table> |
| 30 |
{% endif %} |
| 31 |
|