Add services and SSH keys.
[cas.git] / src / ssh_keys / templates / ssh_keys / sshkey_list.html
diff --git a/src/ssh_keys/templates/ssh_keys/sshkey_list.html b/src/ssh_keys/templates/ssh_keys/sshkey_list.html
new file mode 100644 (file)
index 0000000..a4f5155
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends "account/base.html" %}
+{% load i18n %}
+
+
+{% block menu %}
+  {% with menu="ssh" %}
+    {{ block.super }}
+  {% endwith %}
+{% endblock %}
+
+
+{% block accounts-content %}
+  <h1>{% trans "SSH keys" %}</h1>
+
+  {% for key in object_list %}
+<p>
+  <code style='word-wrap:break-word'>{{ key.key }}</code><br>
+  {% trans "Added at" %} {{ key.created_at }}<br>
+  <a href="{% url 'ssh_keys_delete' key.id %}">
+    {% trans "Delete" %}
+  </a>
+</p>
+<hr>
+  {% endfor %}
+
+  <a href="{% url 'ssh_keys_add' %}">
+    {% trans "Add" %}
+  </a>
+
+{% endblock %}