{% 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 %}
{% include 'errors_block.html' %} {% include 'messages_block.html' %}
{% if not all_host_vms %}
{% trans "Warning" %}: {% trans "Hypervisor doesn't have any Instances" %}
{% else %}
{% for host, insts in all_host_vms.items %} {% for inst, vm in insts.items %} {% endfor %} {% endfor %}
{% trans 'Name' %}
{% trans 'Description' %}
{% trans 'User' %} {% trans 'Status' %} {% trans 'VCPU' %} {% trans 'Memory' %} {% trans 'Actions' %}
{{ inst }}
{{ vm.title }}
{% if vm.userinstances.count > 0 %}{{ vm.userinstances.first_user.user.username }}{% if vm.userinstances.count > 1 %} (+{{ vm.userinstances.count|add:"-1" }}){% endif %}{% endif %} {% if vm.status == 1 %}{% trans "Active" %}{% endif %} {% if vm.status == 5 %}{% trans "Off" %}{% endif %} {% if vm.status == 3 %}{% trans "Suspend" %}{% endif %} {{ vm.vcpu }} {{ vm.memory|filesizeformat }} {% include 'instance_actions.html' %}
{% endif %}
{% endblock %} {% block script %} {% endblock %}