{% load i18n %}

{% trans "Component Details" %}

{% trans "Info" %}

{% for key, value in service.items %} {% if key == 'Instance' %}
{% trans "Instance name" %}
{{ value.name }}

{% elif key == 'Instances' %} {% for instance in value %}
{% blocktrans trimmed %}Instance{{forloop.counter}} name{% endblocktrans %}
{{ instance.name }}

{% endfor %} {% elif key == 'Stack'%}
{% trans "Heat Orchestration stack name" %}
{{ value.name }}

{% elif key == 'Stacks'%} {% for stack in value %}
{% blocktrans trimmed %}Heat Orchestration stack{{forloop.counter}} name{% endblocktrans %}
{{ stack.name }}

{% endfor %} {% else %}
{{ key }}
{{ value }}

{% endif %} {% endfor %}