diff --git a/instances/templates/instances.html b/instances/templates/instances.html index 43e70c5..fbee139 100644 --- a/instances/templates/instances.html +++ b/instances/templates/instances.html @@ -37,21 +37,41 @@ {% else %}
# | Name Description |
Host User |
Status | VCPU | Memory ({% trans "MB" %}) |
- Actions | +Actions & Usage | ||
---|---|---|---|---|---|---|---|---|---|
{{ forloop.counter }} | +{{ host.1 }} | ++ | {% ifequal host.2 1 %}{% trans "Active" %} + {% endifequal %} + {% ifequal host.2 2 %}{% trans "Not Active" %} + {% endifequal %} + {% ifequal host.2 3 %}{% trans "Connection Failed" %} + {% endifequal %} + | +{{ host.3 }} | +{{ host.4|filesizeformat }} | +Mem Usage: {{ host.5 }}% | +|||
{{ vm }} {{ info.title }} |
+ + | {{ forloop.counter }} {{ vm }} {{ info.title }} |
{{ host.1 }} {% if info.userinstances.count > 0 %}{{ info.userinstances.first_user.user.username }}{% if info.userinstances.count > 1 %} (+{{ info.userinstances.count|add:"-1" }}){% endif %}{% endif %} |
{% ifequal info.status 1 %} {% trans "Active" %} @@ -63,8 +83,8 @@ {% trans "Suspend" %} {% endifequal %} | -{{ info.vcpu }} | -{{ info.memory }} | +{{ info.vcpu }} | +{{ info.memory |filesizeformat }} |