From b96d13772e3df8a9ae0b7461749df5869f86983a Mon Sep 17 00:00:00 2001 From: Siarhei Puhach Date: Tue, 4 Jul 2017 17:55:43 +0300 Subject: [PATCH] SSH keys list template changed --- hosting/static/hosting/css/user_keys.css | 57 +++++++++++++++++++++++- hosting/templates/hosting/user_keys.html | 43 ++++++++++++++---- 2 files changed, 90 insertions(+), 10 deletions(-) diff --git a/hosting/static/hosting/css/user_keys.css b/hosting/static/hosting/css/user_keys.css index 3b3c9c63..0c3d2187 100644 --- a/hosting/static/hosting/css/user_keys.css +++ b/hosting/static/hosting/css/user_keys.css @@ -1,5 +1,58 @@ +.ssh-keys-table thead tr th, +.ssh-keys-table tbody tr td{ + color: #717274; + text-align: center; + border-bottom: 1px solid #cbcbcb; + +} +.ssh-keys-table tbody tr{ + border-bottom: 1px solid #cbcbcb; +} +.ssh-keys-table thead tr th:first-of-type, +.ssh-keys-table tbody tr td:first-of-type{ + text-align: left; +} +.ssh-keys-table thead tr th:last-of-type, +.ssh-keys-table tbody tr td:last-of-type{ + width: 20%; +} .ssh-key-header { - line-height: 35px; + color: #717274; + font-size: 16px; + font-weight: 300; } -.ssh-container{ +.ssh-header-container{ + display: flex; + flex-direction: row-reverse; + vertical-align: middle; + align-items: center; + justify-content: space-between; +} +.ssh-header-container p{ + margin: 0; + padding: 0; +} + +.borderless tbody:before { + display: none !important; +} +.btn-custom-download{ + background-color: #337ab7; + margin-top: auto; + margin-bottom: auto; + font-weight: 600; + vertical-align: middle; + margin-right: 25px; +} +.btn-custom-delete{ + width: 100px; + background-color: #f1f0f0; +} +.btn-custom-delete a, .btn-custom-download a{ + text-decoration: none; +} +.modal-body p{ + width: 85%; + word-wrap: break-word; + text-align: left; } diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index f8a75616..27e12d34 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -14,16 +14,16 @@ {% endfor %} {% endif %} -
-

- - + {% trans "Add Key"%} +

+

+ + {% trans "Add Key"%}

To generate a new key pair or to upload your existing key, click "Add Key"
- +

@@ -39,7 +39,7 @@
{{user_key.name}} - - Show +

+ + {% trans "Show"%} +

+ + +