From 9f71c5867e259d0a03099265eece545579059a9c Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 14 Jun 2019 20:33:12 +0530 Subject: [PATCH] ui: Create reusable CSS class for collapsible-button .collapsible-button is used by both "Client Apps" and the "How to verify?" button in backups:verify-ssh-hostkey page. Signed-off-by: Joseph Nuthalapati --- .../backups/templates/verify_ssh_hostkey.html | 50 +++++++++---------- plinth/templates/clients.html | 5 +- static/themes/default/css/plinth.css | 8 +-- 3 files changed, 30 insertions(+), 33 deletions(-) diff --git a/plinth/modules/backups/templates/verify_ssh_hostkey.html b/plinth/modules/backups/templates/verify_ssh_hostkey.html index 990a8aabb..dc859ef90 100644 --- a/plinth/modules/backups/templates/verify_ssh_hostkey.html +++ b/plinth/modules/backups/templates/verify_ssh_hostkey.html @@ -20,41 +20,39 @@ {% load bootstrap %} {% load i18n %} - {% block content %} -

{{ title }}

-
- {% csrf_token %} +

{{ title }}

-
+ + {% 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 host {{ hostname }} cannot be established.
- The SSH host advertises the following 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 %} diff --git a/plinth/templates/clients.html b/plinth/templates/clients.html index 15c37a581..4a9a09c8e 100644 --- a/plinth/templates/clients.html +++ b/plinth/templates/clients.html @@ -23,10 +23,9 @@ {% if clients %}

-

diff --git a/static/themes/default/css/plinth.css b/static/themes/default/css/plinth.css index 2410bc3d8..cf213a4d0 100644 --- a/static/themes/default/css/plinth.css +++ b/static/themes/default/css/plinth.css @@ -231,16 +231,16 @@ footer { } /* Icon when collapsible content is shown */ -#clients-button .fa { +.collapsible-button .fa { margin-left: 5px; } -#clients-button .fa:before, -.no-js #clients-button.collapsed .fa:before { +.collapsible-button .fa:before, +.no-js .collapsible-button.collapsed .fa:before { content: "\f078"; } -#clients-button.collapsed .fa:before { +.collapsible-button.collapsed .fa:before { content: "\f054"; }