{% load i18n %} {% if request.user.is_superuser %} {% endif %} {% if app_settings.VM_DRBD_STATUS == 'True' %} {% endif %} {% for instance in instances %} {% if instance.compute.status is True %} {% if request.user.is_superuser %} {% endif %} {% if app_settings.VM_DRBD_STATUS == 'True' %} {% endif %} {% endif %} {% endfor %}
{% trans 'Name' %}
{% trans 'Description' %}
{% trans 'Host' %}
{% trans 'User' %}
{% trans 'Status' %}{% trans 'Role/Disk' %}{% trans 'VCPU' %} {% trans 'Memory' %} {% trans 'Actions' %}
{{ instance.name }}

{{ instance.title }}

{{ instance.compute.name }}
{% if instance.userinstance_set.all.count > 0 %} {{ instance.userinstance_set.all.0.user }} {% if instance.userinstance_set.all.count > 1 %} (+{{ instance.userinstance_set.all.count|add:"-1" }}) {% endif %} {% endif %}
{% if instance.proxy.instance.info.0 == 1 %}{% trans "Active" %}{% endif %} {% if instance.proxy.instance.info.0 == 5 %}{% trans "Off" %}{% endif %} {% if instance.proxy.instance.info.0 == 3 %}{% trans "Suspended" %}{% endif %} {% if instance.drbd == "Primary/OK" or instance.drbd == "Secondary/OK" %}{% else %}{% endif %}{{ instance.drbd }} {{ instance.proxy.instance.info.3 }} {{ instance.cur_memory }} MB {% include 'instance_actions.html' %}