{% load i18n %} {% load bootstrap_icons %} {% if app_settings.VM_DRBD_STATUS == 'True' %} {% endif %} {% for compute in computes %} {% if compute.instance_set.count > 0 %} {% if app_settings.VM_DRBD_STATUS == 'True' %} {% endif %} {% if compute.status is True %} {% else %} {% endif %} {% for instance in compute.instance_set.all %} {% if app_settings.VM_DRBD_STATUS == 'True' %} {% endif %} {% endfor %} {% endif %} {% empty %} {# sortable.js needs a table body #} {% endfor %}
# {% trans "Name" %}
{% trans "Description" %}
{% trans "User"%} {% trans "Status" %}{% trans "Role/Disk" %}{% trans "VCPU" %} {% trans "Memory" %} {% trans "Actions" %} & {% trans "Mem Usage" %}
{{ compute.name }} {{ compute.instance_set.count }} {% if compute.status is True %} {% trans "Connected" %} {% else %} {% trans "Not Connected" %} {% endif %} {{ compute.cpu_count }} {{ compute.ram_size|filesizeformat }}
{{ compute.ram_usage }}%
{{ forloop.counter }} {{ instance.name }}
{% if instance.info %}

{{ instance.title }}

{% endif %}
{% 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 %} {% include 'instance_state.html' %} {% if instance.drbd == "Primary/OK" or instance.drbd == "Secondary/OK" %}{% else %}{% endif %}{{ instance.drbd }} {{ instance.info.3 }} {% if instance.info %}{% widthratio instance.info.2 1024 1 %} MB{% endif %} {% include 'instance_actions.html' %}
{% block script %} {% endblock %}