From c8a292d3080a3660fe50513b648f73e4efbd149d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 24 Jun 2019 16:29:58 -0700 Subject: [PATCH] backups: Minor fixes to host verification view template - Remove
tags. They have no semantics and should be replaced with uniform styling. - Minor changes to messages. - Remove

tags from internationalized messages. - Rename button label from ' Verify ' to 'Verify Host'. Extra spaces are incorrect. - Fix indentation. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Joseph Nuthalapati --- .../backups/templates/verify_ssh_hostkey.html | 55 +++++++++++-------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/plinth/modules/backups/templates/verify_ssh_hostkey.html b/plinth/modules/backups/templates/verify_ssh_hostkey.html index dc859ef90..c0feb5d68 100644 --- a/plinth/modules/backups/templates/verify_ssh_hostkey.html +++ b/plinth/modules/backups/templates/verify_ssh_hostkey.html @@ -20,39 +20,46 @@ {% load bootstrap %} {% load i18n %} + {% block content %} -

{{ title }}

+

{{ title }}

-
- {% csrf_token %} + + {% csrf_token %} -
- -

- The authenticity of host {{ hostname }} cannot be established.
The SSH host advertises the following public keys. Please verify any one of them. -

- -

- + The authenticity of SSH host {{ hostname }} could not be established. The host advertises the following SSH public keys. Please verify any one of them.

-
- {% blocktrans trimmed %} -

Run the following command on the SSH host machine. The output should match one of the provided options. You can also use dsa, ecdsa, ed25519 etc. instead of rsa, by choosing the corresponding file.

- {% endblocktrans %} + +

- sudo ssh-keygen -lf /etc/ssh/ssh_host_rsa_key +

-
-
+
+

+ {% blocktrans trimmed %} + Run the following command on the SSH host machine. The output should + match one of the provided options. You can also use dsa, ecdsa, + ed25519 etc. instead of rsa, by choosing the corresponding file. + {% endblocktrans %} +

+

+ sudo ssh-keygen -lf /etc/ssh/ssh_host_rsa_key +

+
+ - {{ form|bootstrap }} + {{ form|bootstrap }} - - - {% trans "Cancel" %} - -
+ + + {% trans "Cancel" %} + + {% endblock %}