{% extends "base.html" %} {% load i18n %} {% load static %} {% load common_tags %} {% load bootstrap_icons %} {% block title %}{% trans "Computes" %}{% endblock %} {% block content %}
{% include 'create_comp_block.html' %} {% include 'search_block.html' %}

{% trans "Computes" %}

{% if not computes %}
{% bs_icon 'exclamation-triangle'%} {% trans "Warning" %}: {% trans "You don't have any computes" %}
{% else %}
{# position-relative: the hidden status texts are positioned within it, not the page #}
{% for compute in computes %} {% with given=compute.shown_capacity %} {% if given %} {% else %} {% endif %} {% endwith %} {% endfor %}
{% trans "Host" %} {% trans "vCPUs" %} {% trans "Memory" %} {% trans "Storage" %} {% trans "Actions" %}
{% if compute.status is True %} {% trans "Connected" %} {% else %} {% trans "Not Connected" %} {% endif %} {{ compute.name }}
{{ compute.hostname }}{% if compute.details %}
{{ compute.details }}{% endif %}
{% if compute.status is not True %}
{{ compute.connection_error }}
{% endif %}
{% include "computes/capacity_vcpus.html" %} {% include "computes/capacity_memory.html" %} {% include "computes/capacity_storage.html" %} {% if compute.status is True %}{% trans "The capacity could not be read." %}{% else %}{% trans "No capacity while the host cannot be reached." %}{% endif %}
{# a host the panel cannot reach opens too: its page says why #} {% bs_icon 'eye-fill' %} {% bs_icon 'pencil-fill' %} {% bs_icon 'x-circle-fill' %}
{% endif %}
{% endblock content %} {% block script %} {% endblock script %}