{% extends "base.html" %} {% load i18n %} {% load static %} {% 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.exists %} {# the state filter: table_filter.js counts each state's VMs the search finds #}
{% endif %} {% if not instances.exists %}

{% 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 %} {# table_filter.js shows it while no row matches #}
{% endblock content %} {% block script %} {% include "instances/vm_states_poll.html" %} {% if app_settings.VIEW_INSTANCES_LIST_STYLE == 'grouped' and request.user.is_superuser %} {% endif %} {% if request.user.is_superuser %} {% endif %} {% endblock script %}