{% extends "base.html" %} {% block content %} {% set attribute_name = "instances" %} {% if instances|length == 0 %}
No instance to show
{% else %} {% for instances_batched in instances|batch(2) %} {% for instance in instances_batched %}
{% if instance.health %}
{% endif %} {% if not instance.health %}
{% endif %}
{{ instance.name }}
{% set instance_details = [{"name" : "TYPE", "value" : instance['_type']},{"name" : "HOSTNAME", "value" : instance['hostname']}] %} {% for detail in instance_details %}

{{ detail['name'] }}

{{ detail['value'] }}

{% endfor %}
{% if instance._type == "local" and instance.health %} {% endif %} {% if not instance._type == "local" and instance.health %} {% endif %} {% if instance._type == "local" and not instance.health or not instance._type == "local" and not instance.health %} {% endif %}
{% endfor %} {% endfor %} {% endif %} {% endblock content %}