diff --git a/hosting/static/hosting/css/user_keys.css b/hosting/static/hosting/css/user_keys.css new file mode 100644 index 00000000..3b3c9c63 --- /dev/null +++ b/hosting/static/hosting/css/user_keys.css @@ -0,0 +1,5 @@ +.ssh-key-header { + line-height: 35px; +} +.ssh-container{ +} diff --git a/hosting/templates/hosting/base_short.html b/hosting/templates/hosting/base_short.html index e1a6a027..96c313a4 100644 --- a/hosting/templates/hosting/base_short.html +++ b/hosting/templates/hosting/base_short.html @@ -18,6 +18,7 @@ + @@ -46,7 +47,7 @@ - + @@ -90,7 +91,7 @@ {% trans "Logout"%} - diff --git a/hosting/templates/hosting/user_keys.html b/hosting/templates/hosting/user_keys.html index 1dc45e54..f8a75616 100644 --- a/hosting/templates/hosting/user_keys.html +++ b/hosting/templates/hosting/user_keys.html @@ -1,12 +1,12 @@ {% extends "hosting/base_short.html" %} {% load staticfiles bootstrap3 i18n %} -{% block content %} +{% block content %} - + - {% trans "Access Key"%} + {% trans "Your SSH Key"%} {% if messages %} {% for message in messages %} @@ -14,66 +14,77 @@ {% endfor %} {% endif %} - - {% trans "Add Key"%} - - Use your created key to access to the machine. If you lost it, contact us. - + + + + + {% trans "Add Key"%} + + + To generate a new key pair or to upload your existing key, click "Add Key" + + + - - + + {% trans "Name"%} - {% trans "Created at"%} - {% trans "Status"%} - + {% trans "Delete Key"%} + {% trans "Public Key"%} + {% trans "Private Key"%} - + {% for user_key in keys %} - - {{user_key.name}} + + {{user_key.name}} - {{user_key.created_at|date:'Y-m-d H:i' }} - Active - - - {% trans "Delete Key"%} - + + + {% trans "Delete"%} + - - - - - × - - - - {% trans "Do You want to delete this key?"%} + + + + + × + + + + {% trans "Do You want to delete this key?"%} - - {% csrf_token %} - - - - - - + + {% csrf_token %} + + + + + + + + Show + + + {% trans "Download"%} + + {% endfor %} - + @@ -84,17 +95,17 @@ - + {% if next_url %} - {% endif %} - -
- {% trans "Add Key"%} -
+ + + {% trans "Add Key"%} + +