From 9427530213c1c78c59c9abbfd022c105d19f2b05 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 08 2016 07:57:28 +0000 Subject: Make the ssh_info page more flexible This way adding more information about the ssh keys of the servers is as easy as extending the configuration file. --- diff --git a/pagure/templates/doc_ssh_keys.html b/pagure/templates/doc_ssh_keys.html index 0cc3139..4f42b41 100644 --- a/pagure/templates/doc_ssh_keys.html +++ b/pagure/templates/doc_ssh_keys.html @@ -21,20 +21,14 @@ instance:

{% for cert in config.get('SSH_KEYS') %} -
-
- {{ cert }} Fingerprint + {% for type in config['SSH_KEYS'][cert] %} +
+
+ {{ cert }} {{ type | title }} +
+
{{ config['SSH_KEYS'][cert][type] }}
-
{{ config['SSH_KEYS'][cert]['fingerprint'] }}
-
- -
-
- {{ cert }} Hostkey -
-
{{ config['SSH_KEYS'][cert]['pubkey'] }}
-
- + {% endfor %} {% endfor %} {% else %}