{% extends "base.html" %} {% load static %} {% load vm_states %} {% load i18n %} {% load operations %} {% load bootstrap_icons %} {% block title %}{% trans "Instance" %} - {{ instance.name }}{% endblock %} {% block page_header %}{% endblock page_header %}{# the card below has the heading #} {% block content %} {% include 'pleasewaitdialog.html' %} {# the VM at a glance in one card: who and where it is, what it has, and its sections as the card's footer #}

{{ instance.name }}

{% vm_state instance.status as state %} {{ state.0 }} {% if instance.is_template %}{% trans "Template" %}{% endif %}
{% if instance.title %}

{{ instance.title }}

{% endif %} {% include 'instances/host_link.html' %}
{% if instance.is_template and can_clone %} {% endif %} {% if instance.guest_agent_ready %} {% endif %} {% bs_icon 'arrow-clockwise' %} {% trans "Refresh" %}
{% if not instance.is_template %}
{% if not instance.guest_agent %} {% bs_icon 'dash-circle' %} {% trans "Guest agent off" %} {% elif instance.guest_agent_ready %} {% bs_icon 'check-circle' %} {% trans "Guest agent connected" %} {% else %} {% bs_icon 'exclamation-circle' %} {% trans "Guest agent not connected" %} {% endif %} {% bs_icon 'camera' %} {% blocktrans count counter=instance.snapshots|length %}{{ counter }} snapshot{% plural %}{{ counter }} snapshots{% endblocktrans %}
{% endif %}
{% trans "CPU" %}
{% firstof instance.cur_vcpu instance.vcpu %} {% trans "of" %} {{ instance.vcpu }} {% trans "vCPU" %}
{% trans "Memory" %}
{{ instance.cur_memory }} MiB
{% trans "Disks" %}
{% for disk in instance.disks %}{{ disk.dev }} {{ disk.size|filesizeformat }}{% if not forloop.last %} · {% endif %}{% empty %}{% trans "None" %}{% endfor %}
{% if not instance.is_template %}
{% trans "IPv4" %}
{{ ipv4_addresses|join:", "|default:"—" }}
{% endif %}
{% if not instance.is_template %} {% include 'instances/power_tab.html' %} {% include 'instances/access_tab.html' %} {% endif %} {% include 'instances/resize_tab.html' %} {% if can_snapshot and not instance.is_template %}{% include 'instances/snapshots_tab.html' %}{% endif %} {% if show_settings %}{% include 'instances/settings_tab.html' %}{% endif %} {% if not instance.is_template %}{% include 'instances/stats_tab.html' %}{% endif %} {% include 'instances/destroy_tab.html' %}
{% endblock %} {% block script %} {% if not instance.is_template %}{% endif %} {% job_panel_script job_resource %} {% endblock %}