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

templates/instance.html view redesign. smaller instance details, instance title added

This commit is contained in:
Ing. Jan KRCMAR 2017-06-06 12:51:32 +02:00
parent f959dc7016
commit d715e996b0

View file

@ -5,44 +5,37 @@
{% include 'pleasewaitdialog.html' %} {% include 'pleasewaitdialog.html' %}
<!-- Page Heading --> <!-- Page Heading -->
<div class="row"> <div class="row">
<table> <div>
<tr> <h3>
<td><h3>{{ vname }}</h3></td> {{ vname }}{% if title %}&nbsp;({{ title }}){% endif %}
<td> </h3>
{% ifequal status 5 %} </div>
<span class="label label-danger">{% trans "Off" %}</span> <div>
{% endifequal %} <div>
{% ifequal status 1 %} {% ifequal status 5 %}
<span class="label label-success">{% trans "Active" %}</span> <span class="label label-danger">{% trans "Off" %}</span>
{% endifequal %} {% endifequal %}
{% ifequal status 3 %} {% ifequal status 1 %}
<span class="label label-warning">{% trans "Suspend" %}</span> <span class="label label-success">{% trans "Active" %}</span>
{% endifequal %} {% endifequal %}
</td> {% ifequal status 3 %}
<td> <span class="label label-warning">{% trans "Suspend" %}</span>
<a href="{% url 'instance' compute.id vname %}" type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-refresh"></span></a> {% endifequal %}
</td> |
</tr> {% if cur_vcpu %}
</table> {{ cur_vcpu }} {% trans "Vcpu" %}
<table width="65%"> {% else %}
<tr> {{ vcpu }} {% trans "Vcpu" %}
<td> {% endif %}
{% if cur_vcpu %} |
<h4>{{ cur_vcpu }} {% trans "Vcpu" %}</h4> {{ cur_memory }} {% trans "MB" %} {% trans "Ram" %}
{% else %} |
<h4>{{ vcpu }} {% trans "Vcpu" %}</h4>
{% endif %}
</td>
<td>
<h4>{{ cur_memory }} {% trans "MB" %} {% trans "Ram" %}</h4>
</td>
{% for disk in disks %} {% for disk in disks %}
<td> {{ disk.size|filesizeformat }} {% trans "Disk" %} |
<h4>{{ disk.size|filesizeformat }} {% trans "Disk" %}</h4>
</td>
{% endfor %} {% endfor %}
</tr> <a href="{% url 'instance' compute.id vname %}" type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-refresh"></span></a>
</table> </div>
</div>
{% if user_quota_msg %} {% if user_quota_msg %}
<span class="label label-warning">{{ user_quota_msg|capfirst }} quota reached.</span> <span class="label label-warning">{{ user_quota_msg|capfirst }} quota reached.</span>
{% endif %} {% endif %}