{% extends "base.html" %} {% load i18n %} {% load static %} {% load operations %} {% block title %}{% trans "Instances" %}{% endblock %} {% block page_heading %}{% trans "Instances" %}{% endblock page_heading %} {% block page_heading_extra %}
{# the list's search and the address search, as one control #}
{% if request.user.is_superuser %} {% include 'create_inst_block.html' %} {% endif %}
{% endblock page_heading_extra %} {% block content %} {% if show_hosts %} {% if unreachable_computes %} {# one alert for every host the panel cannot reach, each with why #} {% endif %} {% elif own_hosts_down %} {% endif %}
{% if instances %} {# the state filter: table_filter.js counts each state's VMs the search finds #} {% include 'common/tag_filter.html' %} {% if powerable %} {# the VMs chosen in the list (bulk_power_box.html), a job each (instances.jobs.POWER); bulk_power.js counts those on screen #}
{% csrf_token %}{% submission_key %}
{% if snapshotable %} {# external, without memory and without freezing file systems: the VM's Snapshots tab has those choices #}
{% endif %} {% if request.user.is_superuser %} {# tags are a superuser's, as on the VM's Settings tab #}
{% for tag in tag_names %}
{% endif %}
{% endif %}
{% endif %} {% if not instances %}

{% trans "There are no VMs here yet." %}

{% elif app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %} {% include 'allinstances_index_grouped.html' %} {% else %} {% include 'allinstances_index_nongrouped.html' %} {% endif %} {% if instances %} {# table_filter.js shows it while no row matches #} {% endif %}
{% endblock content %} {% block script %} {% include "instances/vm_states_poll.html" %} {% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %} {% endif %} {# after host_groups.js: the hosts it collapses are off screen #} {% if powerable %}{% endif %} {% if request.user.is_superuser %} {% endif %} {% endblock script %}