{% extends "base.html" %} {% load i18n %} {% load staticfiles %} {% block title %}{% trans "Instances" %} - {{ compute.name }}{% endblock %} {% block style %} {% endblock %} {% block content %}
{% if request.user.is_superuser %} {% endif %} {% if all_host_vms or all_user_vms %} {% endif %}

{{ compute.name }}

{% include 'errors_block.html' %}
{% if not all_host_vms %}
{% trans "Warning" %}: {% trans "Hypervisor doesn't have any instances" %}
{% else %}
{% for host, inst in all_host_vms.items %} {% for vm, info in inst.items %} {% endfor %} {% endfor %}
{% trans 'Name' %}
{% trans 'Description' %}
{% trans 'User' %} {% trans 'Status' %} {% trans 'VCPU' %} {% trans 'Memory' %} {% trans 'Actions' %}
{{ 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 }}
{% csrf_token %} {% ifequal info.status 5 %} {% if info.is_template %} {% else %} {% endif %} {% endifequal %} {% ifequal info.status 3 %} {% endifequal %} {% ifequal info.status 1 %} {% endifequal %}
{% endif %}
{% endblock %} {% block script %} {% endblock %}