mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
networks: 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
a41e78575d
commit
de546bc2e9
@ -56,60 +56,56 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="list-group">
|
||||||
<div class="col-lg-12">
|
{% for connection in connections %}
|
||||||
<div class="list-group">
|
<div class="list-group-item clearfix">
|
||||||
{% for connection in connections %}
|
<a href="{% url 'networks:delete' connection.uuid %}"
|
||||||
<div class="list-group-item clearfix">
|
class="btn btn-default btn-sm pull-right"
|
||||||
<a href="{% url 'networks:delete' connection.uuid %}"
|
role="button"
|
||||||
class="btn btn-default btn-sm pull-right"
|
title="{% blocktrans with name=connection.name %}Delete connection {{ name }}{% endblocktrans %}">
|
||||||
role="button"
|
<span class="glyphicon glyphicon-trash"
|
||||||
title="{% blocktrans with name=connection.name %}Delete connection {{ name }}{% endblocktrans %}">
|
aria-hidden="true"></span>
|
||||||
<span class="glyphicon glyphicon-trash"
|
</a>
|
||||||
aria-hidden="true"></span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{% if connection.is_active %}
|
{% if connection.is_active %}
|
||||||
<form class="form pull-right" method="post"
|
<form class="form pull-right" method="post"
|
||||||
action="{% url 'networks:deactivate' connection.uuid %}">
|
action="{% url 'networks:deactivate' connection.uuid %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-default btn-sm">
|
<button type="submit" class="btn btn-default btn-sm">
|
||||||
{% trans "Deactivate" %}</button>
|
{% trans "Deactivate" %}</button>
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form class="form pull-right" method="post"
|
<form class="form pull-right" method="post"
|
||||||
action="{% url 'networks:activate' connection.uuid %}">
|
action="{% url 'networks:activate' connection.uuid %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-default btn-sm">
|
<button type="submit" class="btn btn-default btn-sm">
|
||||||
{% trans "Activate" %}</button>
|
{% trans "Activate" %}</button>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if connection.is_active %}
|
{% if connection.is_active %}
|
||||||
<span class="label label-success connection-status-label">
|
<span class="label label-success connection-status-label">
|
||||||
{% trans "Active" %}</span>
|
{% trans "Active" %}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="label label-warning connection-status-label">
|
<span class="label label-warning connection-status-label">
|
||||||
{% trans "Inactive" %}</span>
|
{% trans "Inactive" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="connection-show-label"
|
<a class="connection-show-label"
|
||||||
href="{% url 'networks:show' connection.uuid %}"
|
href="{% url 'networks:show' connection.uuid %}"
|
||||||
title="Show connection {{ connection.name }}">
|
title="Show connection {{ connection.name }}">
|
||||||
{{ connection.name }}
|
{{ connection.name }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span class="connection-type-label">{{ connection.type_name }}</span>
|
<span class="connection-type-label">{{ connection.type_name }}</span>
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
{% include "connections_diagram.html" %}
|
|
||||||
|
|
||||||
{% include "diagnostics_button.html" with module="networks" enabled=True %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% include "connections_diagram.html" %}
|
||||||
|
|
||||||
|
{% include "diagnostics_button.html" with module="networks" enabled=True %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user