mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
monkeysphere: Remove unnecessary column sizing
Signed-off-by: Manish Tripathy <manisht@thougtworks.com> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
9c9998d041
commit
fa8e15bc99
@ -66,98 +66,94 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row">
|
<table class="table table-striped">
|
||||||
<div class="col-lg-12">
|
<thead>
|
||||||
<table class="table table-striped">
|
<tr>
|
||||||
<thead>
|
<th>{% trans "Service" %}</th>
|
||||||
<tr>
|
<th>{% trans "Domains" %}</th>
|
||||||
<th>{% trans "Service" %}</th>
|
<th>{% trans "OpenPGP Fingerprint" %}</th>
|
||||||
<th>{% trans "Domains" %}</th>
|
<th></th>
|
||||||
<th>{% trans "OpenPGP Fingerprint" %}</th>
|
</tr>
|
||||||
<th></th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
{% for key in status.keys.values|dictsort:"ssh_fingerprint" %}
|
||||||
<tbody>
|
<tr>
|
||||||
{% for key in status.keys.values|dictsort:"ssh_fingerprint" %}
|
<td>
|
||||||
<tr>
|
{% if key.service == 'ssh' %}
|
||||||
<td>
|
{% trans "Secure Shell" %}
|
||||||
{% if key.service == 'ssh' %}
|
{% elif key.service == 'https' %}
|
||||||
{% trans "Secure Shell" %}
|
{% trans "Web Server" %}
|
||||||
{% elif key.service == 'https' %}
|
{% else %}
|
||||||
{% trans "Web Server" %}
|
{% trans "Other" %}
|
||||||
{% else %}
|
{% endif %}
|
||||||
{% trans "Other" %}
|
</td>
|
||||||
{% endif %}
|
<td>
|
||||||
</td>
|
<ul>
|
||||||
<td>
|
{% for domain in key.all_domains %}
|
||||||
<ul>
|
<li>
|
||||||
{% for domain in key.all_domains %}
|
{% if domain not in key.imported_domains %}
|
||||||
<li>
|
<span class="label label-default"
|
||||||
{% if domain not in key.imported_domains %}
|
><span class="glyphicon glyphicon-remove"
|
||||||
<span class="label label-default"
|
aria-hidden="true"></span></span>
|
||||||
><span class="glyphicon glyphicon-remove"
|
{% elif domain not in key.available_domains %}
|
||||||
aria-hidden="true"></span></span>
|
<span class="label label-warning"
|
||||||
{% elif domain not in key.available_domains %}
|
><span class="glyphicon glyphicon-warning-sign"
|
||||||
<span class="label label-warning"
|
aria-hidden="true"></span></span>
|
||||||
><span class="glyphicon glyphicon-warning-sign"
|
{% else %}
|
||||||
aria-hidden="true"></span></span>
|
<span class="label label-success"
|
||||||
{% else %}
|
><span class="glyphicon glyphicon-ok"
|
||||||
<span class="label label-success"
|
aria-hidden="true"></span></span>
|
||||||
><span class="glyphicon glyphicon-ok"
|
|
||||||
aria-hidden="true"></span></span>
|
|
||||||
{% endif %}
|
|
||||||
{{ domain }}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{% if key.openpgp_fingerprint %}
|
|
||||||
<a href="{% url 'monkeysphere:details' key.openpgp_fingerprint %}"
|
|
||||||
title="{% blocktrans trimmed with fingerprint=key.openpgp_fingerprint %}
|
|
||||||
Show details for key {{ fingerprint }}
|
|
||||||
{% endblocktrans %}">
|
|
||||||
{{ key.openpgp_fingerprint }}
|
|
||||||
</a>
|
|
||||||
{% else %}
|
|
||||||
{% trans "-" %}
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{% if not key.openpgp_fingerprint %}
|
|
||||||
<form class="form pull-right" method="post"
|
|
||||||
action="{% url 'monkeysphere:import' key.ssh_fingerprint %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary btn-sm pull-right">
|
|
||||||
{% trans "Import Key" %}</button>
|
|
||||||
</form>
|
|
||||||
{% else %}
|
|
||||||
{% if not running %}
|
|
||||||
<form class="form pull-right" method="post"
|
|
||||||
action="{% url 'monkeysphere:publish' key.openpgp_fingerprint %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
<button type="submit" class="btn btn-warning btn-sm pull-right">
|
|
||||||
{% trans "Publish Key" %}</button>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if key.importable_domains %}
|
{{ domain }}
|
||||||
<form class="form pull-right" method="post"
|
</li>
|
||||||
action="{% url 'monkeysphere:import' key.ssh_fingerprint %}">
|
{% endfor %}
|
||||||
{% csrf_token %}
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if key.openpgp_fingerprint %}
|
||||||
|
<a href="{% url 'monkeysphere:details' key.openpgp_fingerprint %}"
|
||||||
|
title="{% blocktrans trimmed with fingerprint=key.openpgp_fingerprint %}
|
||||||
|
Show details for key {{ fingerprint }}
|
||||||
|
{% endblocktrans %}">
|
||||||
|
{{ key.openpgp_fingerprint }}
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
{% trans "-" %}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if not key.openpgp_fingerprint %}
|
||||||
|
<form class="form pull-right" method="post"
|
||||||
|
action="{% url 'monkeysphere:import' key.ssh_fingerprint %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary btn-sm pull-right">
|
<button type="submit" class="btn btn-primary btn-sm pull-right">
|
||||||
{% trans "Add Domains" %}</button>
|
{% trans "Import Key" %}</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% else %}
|
||||||
{% endif %}
|
{% if not running %}
|
||||||
</td>
|
<form class="form pull-right" method="post"
|
||||||
</tr>
|
action="{% url 'monkeysphere:publish' key.openpgp_fingerprint %}">
|
||||||
{% endfor %}
|
{% csrf_token %}
|
||||||
</tbody>
|
|
||||||
</table>
|
<button type="submit" class="btn btn-warning btn-sm pull-right">
|
||||||
</div>
|
{% trans "Publish Key" %}</button>
|
||||||
</div>
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
{% if key.importable_domains %}
|
||||||
|
<form class="form pull-right" method="post"
|
||||||
|
action="{% url 'monkeysphere:import' key.ssh_fingerprint %}">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
|
<button type="submit" class="btn btn-primary btn-sm pull-right">
|
||||||
|
{% trans "Add Domains" %}</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user