{% load i18n %} {% load url from future%}

{% trans 'Health Status' %}

{% trans 'Deployed Nodes' %} ({{ deployed_nodes|length|default:0 }}) {% if deployed_nodes_down %} {% if deployed_nodes_down|length == 1 %} {% comment %} Replace id with uuid when ironicclient is used instead baremetalclient {% endcomment %} {% url 'horizon:infrastructure:nodes:detail' deployed_nodes_down.0.id as node_detail_url %} {% else %} {% url 'horizon:infrastructure:nodes:index' as nodes_index_url %} {% endif %} {% blocktrans count down_count=deployed_nodes_down|length %} {{ down_count }} node is down {% plural %} {{ down_count }} nodes are down {% endblocktrans %} {% else %} {% trans 'All nodes are performing correctly' %} {% endif %}
{% trans 'Free Nodes' %} ({{ free_nodes|length|default:0 }}) {% if free_nodes_down %} {% if free_nodes_down|length == 1 %} {% comment %} Replace id with uuid when ironicclient is used instead baremetalclient {% endcomment %} {% url 'horizon:infrastructure:nodes:detail' free_nodes_down.0.id as node_detail_url %} {% else %} {% url 'horizon:infrastructure:nodes:index' as nodes_index_url %} {% endif %} {% blocktrans count down_count=free_nodes_down|length %} {{ down_count }} node is down {% plural %} {{ down_count }} nodes are down {% endblocktrans %} {% else %} {% trans 'All nodes are performing correctly' %} {% endif %}

{% trans 'Provisioning Status' %}

{% widthratio deployed_nodes|length total_nodes|length 100 %}% {% trans 'Deployed' %}
{% widthratio free_nodes|length total_nodes|length 100 %}% {% trans 'Free' %}

{% trans 'Power Status' %}

{% widthratio total_nodes_up|length total_nodes|length 100 %}% {% trans 'Running' %}
{% widthratio total_nodes_down|length total_nodes|length 100 %}% {% trans 'Stopped' %}