ssh_keys table updated
This commit is contained in:
parent
c8cf0bfba5
commit
bfd621e98b
3 changed files with 23 additions and 20 deletions
|
@ -543,7 +543,7 @@ msgstr "Möchtest Du den Schlüssel löschen?"
|
||||||
|
|
||||||
#: .\hosting\templates\hosting\user_keys.html:72
|
#: .\hosting\templates\hosting\user_keys.html:72
|
||||||
msgid "Show"
|
msgid "Show"
|
||||||
msgstr ""
|
msgstr "Anzeigen"
|
||||||
|
|
||||||
#: .\hosting\templates\hosting\user_keys.html:82
|
#: .\hosting\templates\hosting\user_keys.html:82
|
||||||
msgid "Public ssh key"
|
msgid "Public ssh key"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
.h1-thin {
|
.h1-thin {
|
||||||
font-family: Lato, sans-serif;
|
font-family: Lato, sans-serif;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
.dashboard-container .page-header {
|
.dashboard-container .page-header {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
@ -33,9 +34,11 @@
|
||||||
padding-bottom: 25px;
|
padding-bottom: 25px;
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
.choice-container .choice-btn {
|
||||||
|
margin-top: 25px;
|
||||||
|
}
|
||||||
.choice-btn {
|
.choice-btn {
|
||||||
min-width: 110px;
|
min-width: 110px;
|
||||||
margin-top: 25px;
|
|
||||||
background-color: #3C5480;
|
background-color: #3C5480;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border: 2px solid #3C5480;
|
border: 2px solid #3C5480;
|
||||||
|
@ -55,7 +58,7 @@
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.h1-thin {
|
.h1-thin {
|
||||||
font-size: 29px;
|
font-size: 27px;
|
||||||
}
|
}
|
||||||
.dashboard-choice-container h2 {
|
.dashboard-choice-container h2 {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
@ -73,7 +76,7 @@
|
||||||
color: #717274;
|
color: #717274;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-bottom: 1px solid #cbcbcb;
|
border-bottom: 1px solid #cbcbcb;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
.ssh-keys-table tbody tr{
|
.ssh-keys-table tbody tr{
|
||||||
border-bottom: 1px solid #cbcbcb;
|
border-bottom: 1px solid #cbcbcb;
|
||||||
|
@ -100,6 +103,7 @@
|
||||||
.ssh-header-container {
|
.ssh-header-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
.ssh-header-container p{
|
.ssh-header-container p{
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div>
|
<div>
|
||||||
<div class="container virtual-machine-container dashboard-container ">
|
<div class="container virtual-machine-container dashboard-container ">
|
||||||
<h2><i class="fa fa-key" aria-hidden="true"></i> {% trans "Your SSH Keys"%}</h2>
|
<h2><i class="fa fa-key" aria-hidden="true"></i> {% trans "Your SSH Keys" %}</h2>
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
{% for message in messages %}
|
{% for message in messages %}
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
<div class="ssh-header-container">
|
<div class="ssh-header-container">
|
||||||
<p>{% trans "To generate a new key pair or to upload your existing key, click 'Add Key'" %}</p>
|
<p>{% trans "To generate a new key pair or to upload your existing key, click 'Add Key'" %}</p>
|
||||||
<a class="btn choice-btn" href="{% url 'hosting:choice_ssh_keys' %}" >
|
<a class="btn choice-btn" href="{% url 'hosting:choice_ssh_keys' %}" >
|
||||||
<span class="fa fa-plus"></span> {% trans "Add SSH Key"%}
|
<span class="fa fa-plus"></span> {% trans "Add SSH Key" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -22,22 +22,21 @@
|
||||||
<br/>
|
<br/>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Name"%}</th>
|
<th>{% trans "Name" %}</th>
|
||||||
<th>{% trans "Delete Key"%}</th>
|
<th>{% trans "Delete Key" %}</th>
|
||||||
<th>{% trans "Public Key"%}</th>
|
<th>{% trans "Public Key" %}</th>
|
||||||
<th>{% trans "Private Key"%}</th>
|
<th>{% trans "Private Key" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for user_key in keys %}
|
{% for user_key in keys %}
|
||||||
<tr>
|
<tr>
|
||||||
<td scope="row">{{user_key.name}}</td>
|
<td scope="row">{{user_key.name}}</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<button type="button" class="btn btn-default btn-custom-delete" data-toggle="modal"
|
<button type="button" class="btn btn-default btn-custom-delete" data-toggle="modal"
|
||||||
data-target="#Modal{{ user_key.id }}" style="color: #717274">
|
data-target="#Modal{{ user_key.id }}" style="color: #717274">
|
||||||
|
<span class="pc-only">{% trans "Delete" %}</span>
|
||||||
{% trans "Delete"%}
|
<span class="mob-only"><i class="fa fa-trash"></i></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="modal fade" id="Modal{{user_key.id }}" tabindex="-1" role="dialog">
|
<div class="modal fade" id="Modal{{user_key.id }}" tabindex="-1" role="dialog">
|
||||||
|
@ -50,15 +49,15 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<h4 class="modal-title" id="ModalLabel">{% trans "Do You want to delete this key?"%}</h4>
|
<h4 class="modal-title" id="ModalLabel">{% trans "Do You want to delete this key?" %}</h4>
|
||||||
<form method="post" action="{% url 'hosting:delete_ssh_key' user_key.id %}">
|
<form method="post" action="{% url 'hosting:delete_ssh_key' user_key.id %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default"
|
<button type="button" class="btn btn-default"
|
||||||
data-dismiss="modal">
|
data-dismiss="modal">
|
||||||
{% trans "Close"%}
|
{% trans "Close" %}
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" class="btn btn-primary">{% trans "Delete"%}
|
<button type="submit" class="btn btn-primary">{% trans "Delete" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -69,7 +68,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p type="button" data-toggle="modal" style="margin: 0" data-target="#Modal_public_key{{ user_key.id }}">
|
<p type="button" data-toggle="modal" style="margin: 0" data-target="#Modal_public_key{{ user_key.id }}">
|
||||||
<a href="#">{% trans "Show"%}</a>
|
<a href="#">{% trans "Show" %}</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="modal fade" id="Modal_public_key{{user_key.id }}" tabindex="-1" role="dialog">
|
<div class="modal fade" id="Modal_public_key{{user_key.id }}" tabindex="-1" role="dialog">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
|
@ -79,14 +78,14 @@
|
||||||
aria-label="Confirm"><span
|
aria-label="Confirm"><span
|
||||||
aria-hidden="true">×</span>
|
aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
<h4 class="modal-title" id="ModalLabel_Public_Key">{% trans "Public ssh key"%}</h4>
|
<h4 class="modal-title" id="ModalLabel_Public_Key">{% trans "Public ssh key" %}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p>{{ user_key.public_key }}</p>
|
<p>{{ user_key.public_key }}</p>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default"
|
<button type="button" class="btn btn-default"
|
||||||
data-dismiss="modal">
|
data-dismiss="modal">
|
||||||
{% trans "Close"%}
|
{% trans "Close" %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -100,7 +99,7 @@
|
||||||
<form action="{{ user_key.private_key.url }}">
|
<form action="{{ user_key.private_key.url }}">
|
||||||
<button style="color: #717274" type="submit" class="btn btn-default" data-toggle="modal"
|
<button style="color: #717274" type="submit" class="btn btn-default" data-toggle="modal"
|
||||||
>
|
>
|
||||||
<span class="pc-only">{% trans "Download"%}</span>
|
<span class="pc-only">{% trans "Download" %}</span>
|
||||||
<span class="mob-only"><i class="fa fa-download"></i></span>
|
<span class="mob-only"><i class="fa fa-download"></i></span>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue