diff --git a/instances/templates/instances.html b/instances/templates/instances.html index f41a498..913e990 100644 --- a/instances/templates/instances.html +++ b/instances/templates/instances.html @@ -6,281 +6,305 @@ {% endblock %} {% block content %} - -
# | -Name Description |
- User | -Status | -VCPU | -Memory | -Actions & Mem 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 }} | -- | - -- | {{ forloop.counter }} {{ vm }} - {{ info.title }} - |
- - - {% 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" %} - {% endifequal %} - {% ifequal info.status 5 %} - {% trans "Off" %} - {% endifequal %} - {% ifequal info.status 3 %} - {% trans "Suspend" %} - {% endifequal %} - | -{{ info.vcpu }} | -{{ info.memory |filesizeformat }} | -- - | - - {% endfor %} - -
Name | -Status | -VCPU | -Memory | -Actions | -
---|---|---|---|---|
{{ vm.name }} - {{ vm.title }} - |
- {% ifequal vm.status 1 %} - {% trans "Active" %} - {% endifequal %} - {% ifequal vm.status 5 %} - {% trans "Off" %} - {% endifequal %} - {% ifequal vm.status 3 %} - {% trans "Suspend" %} - {% endifequal %} - | -{{ vm.vcpu }} | -{{ vm.memory }} {% trans "MB" %} | -- - | -
# | +Name Description |
+ User | +Status | +VCPU | +Memory | +Actions & Mem 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 }} | ++ | + +
+ | {{ forloop.counter }} {{ vm }} + {{ info.title }} + |
+ + {% 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" %} + {% endifequal %} + {% ifequal info.status 5 %} + {% trans "Off" %} + {% endifequal %} + {% ifequal info.status 3 %} + {% trans "Suspend" %} + {% endifequal %} + | +{{ info.vcpu }} | +{{ info.memory |filesizeformat }} | ++ + | +
Name | +Status | +VCPU | +Memory | +Actions | +
---|---|---|---|---|
{{ vm.name }} + {{ vm.title }} + |
+ {% ifequal vm.status 1 %} + {% trans "Active" %} + {% endifequal %} + {% ifequal vm.status 5 %} + {% trans "Off" %} + {% endifequal %} + {% ifequal vm.status 3 %} + {% trans "Suspend" %} + {% endifequal %} + | +{{ vm.vcpu }} | +{{ vm.memory }} {% trans "MB" %} | ++ + | +