1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 07:35: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,10 +5,13 @@
{% 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>
</div>
<div>
<div>
{% ifequal status 5 %} {% ifequal status 5 %}
<span class="label label-danger">{% trans "Off" %}</span> <span class="label label-danger">{% trans "Off" %}</span>
{% endifequal %} {% endifequal %}
@ -18,31 +21,21 @@
{% ifequal status 3 %} {% ifequal status 3 %}
<span class="label label-warning">{% trans "Suspend" %}</span> <span class="label label-warning">{% trans "Suspend" %}</span>
{% endifequal %} {% endifequal %}
</td> |
<td>
<a href="{% url 'instance' compute.id vname %}" type="button" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-refresh"></span></a>
</td>
</tr>
</table>
<table width="65%">
<tr>
<td>
{% if cur_vcpu %} {% if cur_vcpu %}
<h4>{{ cur_vcpu }} {% trans "Vcpu" %}</h4> {{ cur_vcpu }} {% trans "Vcpu" %}
{% else %} {% else %}
<h4>{{ vcpu }} {% trans "Vcpu" %}</h4> {{ vcpu }} {% trans "Vcpu" %}
{% endif %} {% endif %}
</td> |
<td> {{ cur_memory }} {% trans "MB" %} {% trans "Ram" %}
<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 %}