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

{% trans "Computes" %}

{% include 'errors_block.html' %}
{% if computes_info %} {% for compute in computes_info %}
{% ifequal compute.status 1 %}

{{ compute.name }}

{% else %}

{{ compute.name }}

{% endifequal %}

{% csrf_token %}

{% ifequal compute.type 1 %} tcp://{{ compute.hostname }} {% endifequal %} {% ifequal compute.type 2 %} ssh://{{ compute.hostname }} {% endifequal %} {% ifequal compute.type 3 %} tls://{{ compute.hostname }} {% endifequal %} {% ifequal compute.type 4 %} socket:// {% endifequal %}

{% endfor %} {% else %}
{% trans "Warning:" %} {% trans "Hypervisor doesn't have any Computes" %}
{% endif %}
{% endblock %}