diff --git a/accounts/templates/account.html b/accounts/templates/account.html
index c8d8c19..9da2c3e 100644
--- a/accounts/templates/account.html
+++ b/accounts/templates/account.html
@@ -13,6 +13,29 @@
{% include 'errors_block.html' %}
+ {% if request.user.is_superuser and publickeys %}
+
+
+
+
+
+
+ {% trans "Key name" %} |
+ {% trans "Public key" %} |
+
+
+
+ {% for publickey in publickeys %}
+ {{ publickey.keyname }} |
+ {{ publickey.keypublic|truncatechars:64 }} |
+ {% endfor %}
+
+
+
+
+
+ {% endif %}
+
{% if not user_insts %}
@@ -112,4 +135,4 @@
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/accounts/views.py b/accounts/views.py
index 6e9fd52..af405e0 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -146,6 +146,7 @@ def account(request, user_id):
user = User.objects.get(id=user_id)
user_insts = UserInstance.objects.filter(user_id=user_id)
instances = Instance.objects.all().order_by('name')
+ publickeys = UserSSHKey.objects.filter(user_id=user_id)
if request.method == 'POST':
if 'delete' in request.POST: