{% load i18n %} {% load url from future%}
{% 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 %} |