1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00

Fixed table

This commit is contained in:
Retspen 2015-03-26 15:15:28 +02:00
parent 7803e3a57c
commit 9464b78531

View file

@ -49,13 +49,13 @@
<td><a href="{% url 'instance' host.0 vm %}">{{ vm }}</a></td> <td><a href="{% url 'instance' host.0 vm %}">{{ vm }}</a></td>
<td><a href="{% url 'overview' host.0 %}">{{ host.1 }}</a></td> <td><a href="{% url 'overview' host.0 %}">{{ host.1 }}</a></td>
<td>{% ifequal info.status 1 %} <td>{% ifequal info.status 1 %}
<p class="text-success">{% trans "Active" %}</p> <span class="text-success">{% trans "Active" %}</span>
{% endifequal %} {% endifequal %}
{% ifequal info.status 5 %} {% ifequal info.status 5 %}
<p class="text-danger">{% trans "Off" %}</p> <span class="text-danger">{% trans "Off" %}</span>
{% endifequal %} {% endifequal %}
{% ifequal info.status 3 %} {% ifequal info.status 3 %}
<p class="text-warning">{% trans "Suspend" %}</p> <span class="text-warning">{% trans "Suspend" %}</span>
{% endifequal %} {% endifequal %}
</td> </td>
<td>{{ info.vcpu }}</td> <td>{{ info.vcpu }}</td>
@ -146,13 +146,13 @@
<tr> <tr>
<td><a href="{% url 'instance' vm.compute_id vm.name %}">{{ vm.name }}</a></td> <td><a href="{% url 'instance' vm.compute_id vm.name %}">{{ vm.name }}</a></td>
<td>{% ifequal vm.status 1 %} <td>{% ifequal vm.status 1 %}
<p class="text-success">{% trans "Active" %}</p> <span class="text-success">{% trans "Active" %}</span>
{% endifequal %} {% endifequal %}
{% ifequal vm.status 5 %} {% ifequal vm.status 5 %}
<p class="text-danger">{% trans "Off" %}</p> <span class="text-danger">{% trans "Off" %}</span>
{% endifequal %} {% endifequal %}
{% ifequal vm.status 3 %} {% ifequal vm.status 3 %}
<p class="text-warning">{% trans "Suspend" %}</p> <span class="text-warning">{% trans "Suspend" %}</span>
{% endifequal %} {% endifequal %}
</td> </td>
<td>{{ vm.vcpu }}</td> <td>{{ vm.vcpu }}</td>