{% extends "base.html" %} {% load i18n %} {% load common_tags %} {% load static %} {% load bootstrap_icons %} {% load operations %} {% block title %}{% trans "Computes" %}{% endblock %} {% block page_heading %}{% trans "Computes" %}{% endblock page_heading %} {% block page_heading_extra %} {% if computes|length > 1 %}{% trans "Balance" %}{% endif %} {% include 'create_comp_block.html' %} {% endblock page_heading_extra %} {% block content %}
{% include "computes/attention.html" %} {% if not computes %}{% trans "You don't have any computes" %}
{% else %} {# the totals of the hosts the panel reaches #}| {% trans "Host" %} | {% trans "VMs" %} | {% trans "vCPUs" %} | {% trans "Memory" %} | {% trans "Actions" %} | |||
|---|---|---|---|---|---|---|---|
|
{{ compute.name }}
{% if compute.status is True %}
{% trans "Connected" %}
{% else %}
{% trans "Not connected" %}
{% endif %}
{% if compute.maintenance %}{# ready once none of its VMs runs; while that is not known, only asked for #}
{% if compute.shown_capacity and not compute.shown_capacity.active %}{% trans "In maintenance" %}{% else %}{% trans "Maintenance requested" %}{% endif %}{% endif %}
{{ compute.connection_name }}
{{ compute.hostname }}
{% if compute.details %}{{ compute.details }} {% endif %}
{% with tags=compute.tags.all %}{% if tags %}{% include 'common/tag_badges.html' with tags=tags|slice:":3" more=tags|slice:"3:" filter=True %} {% endif %}{% endwith %}
{% if compute.status is not True %}
{{ compute.connection_error }}
{% endif %}
|
{% if given %}
{{ given.vm_count }}
{% blocktrans with running=given.vms.running %}{{ running }} running{% endblocktrans %}
|
{% include "computes/capacity_vcpus.html" %} | {% include "computes/capacity_memory.html" %} | {% else %} {# on a phone the VM and vCPU columns are hidden: the totals above have them #}{% if compute.status is True %}{% trans "The capacity could not be read." %}{% else %}{% trans "No capacity while the host cannot be reached." %}{% endif %} | {% endif %}
{# fixed: the menu would be cut off by the table's scrolling box #}
|