1 {% extends
"base.html" %}
3 {% block title %}{{ account }} - {{ _(
"SSH Keys") }}{% end block %}
6 <h1>{{ _(
"SSH Keys") }}
</h1>
8 <ul class=
"list-group mb-3">
9 {% for key in account.ssh_keys %}
10 <li class=
"list-group-item">
12 <a class=
"text-dark" href=
"/users/{{ account.uid }}/ssh-keys/{{ key.hash_md5() }}">
13 {{ key.comment or _(
"%s Key") % key.key_type.decode() }}
17 {% for h in (key.hash_md5(), key.hash_sha256(), key.hash_sha512()) %}
18 <p class=
"text-monospace small text-truncate mb-0">{{ h }}
</p>
22 <p class=
"my-1">{{ _(
"Options") }}
</p>
25 {% for option, values in sorted(key.options.items()) %}
27 <span class=
"text-monospace">{{ option }}
</span>
29 {% if not values == [True] %}
30 =
<span class=
"text-monospace">{{
"".join(values) }}
</span>
37 {% if account.can_be_managed_by(current_user) %}
38 <a class=
"btn btn-outline-danger btn-sm btn-block mt-2" href=
"/users/{{ account.uid }}/ssh-keys/{{ key.hash_md5() }}/delete">
46 {% if account.can_be_managed_by(current_user) %}
47 <a class=
"btn btn-success btn-block" href=
"/users/{{ account.uid }}/ssh-keys/upload">
48 {{ _(
"Upload New SSH Key") }}