1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-01-12 16:35:17 +00:00

fix computes list table layout

This commit is contained in:
catborise 2020-07-23 13:57:10 +03:00
parent 6a8d713ae6
commit bb935b3713

View file

@ -25,26 +25,26 @@
<div class="col-lg-12"> <div class="col-lg-12">
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
<thead> <thead>
<tr> <tr class="d-flex">
<th span="col">{% trans "Name" %}</th> <th span="col" class="col-sm-3">{% trans "Name" %}</th>
<th span="col">{% trans "Status" %}</th> <th span="col" class="col-sm-2">{% trans "Status" %}</th>
<th span="col">{% trans "Details" %}</th> <th span="col" class="col-sm-5">{% trans "Details" %}</th>
<th span="col">{% trans "Actions" %}</th> <th span="col" class="col-sm-2 text-center">{% trans "Actions" %}</th>
</tr> </tr>
</thead> </thead>
<tbody class="searchable"> <tbody class="searchable">
{% for compute in computes %} {% for compute in computes %}
<tr> <tr class="d-flex">
<td> <td class="col-sm-3">
{{ compute.name }} {{ compute.name }}
</td> </td>
<td> <td class="col-sm-2">
{% if compute.status is True %}{% trans "Connected" %}{% else %}{% trans "Not Connected" %}{% endif %} {% if compute.status is True %}{% trans "Connected" %}{% else %}{% trans "Not Connected" %}{% endif %}
</td> </td>
<td> <td class="col-sm-5">
{{ compute.details|default:"" }} {{ compute.details|default:"" }}
</td> </td>
<td> <td class="col-sm-2">
<div class="float-right btn-group"> <div class="float-right btn-group">
{% if compute.status is True %} {% if compute.status is True %}
<a class="btn btn-success" title="{%trans "Overview" %}" href="{% url 'overview' compute.id %}">{% icon 'eye' %}</a> <a class="btn btn-success" title="{%trans "Overview" %}" href="{% url 'overview' compute.id %}">{% icon 'eye' %}</a>