Merge "Clean up horizon.scss - Keypairs"
This commit is contained in:
commit
a06d9fd913
@ -10,28 +10,24 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="row-fluid">
|
||||
<div class="info detail col-sm-12">
|
||||
<h4>{% trans "Information" %}</h4>
|
||||
<hr class="header_rule">
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{% trans "Name" %}</dt>
|
||||
<dd>{{ keypair.name|default:_("None") }}</dd>
|
||||
<dt>{% trans "ID" %}</dt>
|
||||
<dd>{{ keypair.id|default:_("None") }}</dd>
|
||||
<dt>{% trans "Fingerprint" %}</dt>
|
||||
<dd>{{ keypair.fingerprint|default:_("None") }}</dd>
|
||||
<dt>{% trans "Created" %}</dt>
|
||||
<dd>{{ keypair.created_at|parse_isotime}}</dd>
|
||||
{% if keypair.updated_at %}
|
||||
<dt>{% trans "Updated" %}
|
||||
<dd>{{ keypair.updated_at|parse_isotime}}</dd>
|
||||
{% endif %}
|
||||
<dt>{% trans "User ID" %}</dt>
|
||||
<dd>{{ keypair.user_id|default:_("None") }}</dd>
|
||||
<dt>{% trans "Public Key" %}</dt>
|
||||
<dd><textarea class="key_text">{{ keypair.public_key|default:_("None") }}</textarea></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{% trans "Name" %}</dt>
|
||||
<dd>{{ keypair.name|default:_("None") }}</dd>
|
||||
<dt>{% trans "ID" %}</dt>
|
||||
<dd>{{ keypair.id|default:_("None") }}</dd>
|
||||
<dt>{% trans "Fingerprint" %}</dt>
|
||||
<dd>{{ keypair.fingerprint|default:_("None") }}</dd>
|
||||
<dt>{% trans "Created" %}</dt>
|
||||
<dd>{{ keypair.created_at|parse_isotime}}</dd>
|
||||
{% if keypair.updated_at %}
|
||||
<dt>{% trans "Updated" %}
|
||||
<dd>{{ keypair.updated_at|parse_isotime}}</dd>
|
||||
{% endif %}
|
||||
<dt>{% trans "User ID" %}</dt>
|
||||
<dd>{{ keypair.user_id|default:_("None") }}</dd>
|
||||
<dt>{% trans "Public Key" %}</dt>
|
||||
<dd>
|
||||
<div class="key-text word-wrap">{{ keypair.public_key|default:_("None") }}</div>
|
||||
</dd>
|
||||
</dl>
|
||||
{% endblock %}
|
||||
|
@ -16,3 +16,9 @@
|
||||
word-wrap: normal;
|
||||
}
|
||||
}
|
||||
|
||||
// Set on an element that you would like to word wrap to container size
|
||||
.word-wrap {
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
}
|
@ -881,14 +881,6 @@ input::-ms-clear, input::-ms-reveal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* public key text area */
|
||||
textarea.key_text {
|
||||
width: 55em;
|
||||
height: 11em;
|
||||
resize: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/**** Form Horizontal Override ****/
|
||||
.form-horizontal {
|
||||
.form-group {
|
||||
|
@ -34,3 +34,12 @@ form label {
|
||||
line-height: $line-height-small;
|
||||
}
|
||||
}
|
||||
|
||||
// Note (hurgleburgler) : the combination of display: table-cell, width: 100%
|
||||
// and max-width has strange consequences in CSS. This is required to make sure
|
||||
// that the width does not stretch beyond 100%. Please see the answer to
|
||||
// this question for specifics:
|
||||
// http://stackoverflow.com/questions/26292408/why-does-this-behave-the-way-it-does-with-max-width-0
|
||||
#content_body {
|
||||
max-width: 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user