{% extends BASE_TEMPLATE %} {% load i18n %} {% block bodyclass %}relations-tab{% endblock%} {% block view_content %}

{% trans "Related objects" %}

{% if related_objects %} {% for rel_obj_type, objects in related_objects.items %} {% if rel_obj_type == "cloud_hosts" %}

{% trans "Cloud hosts" %}

{% for cloud_host in objects %} {% endfor %}
{% trans "Hostname" %} {% trans "IP Address" %} {% trans "Cloud project" %} {% trans "Cloud provider" %}
{{ cloud_host.hostname }} {% for addr in cloud_host.ip_addresses %} {{ addr }}
{% endfor %}
{{ cloud_host.cloudproject.name }} {{ cloud_host.cloudprovider.name }}
{% endif %} {% if rel_obj_type == "virtual_hosts" %}

{% trans "Virtual hosts" %}

{% for virtual_host in objects %} {% endfor %}
{% trans "Hostname" %} {% trans "IP Address" %}
{{ virtual_host.hostname }} {% for addr in virtual_host.ipaddresses %} {{ addr }}
{% endfor %}
{% endif %} {% if rel_obj_type == "physical_hosts" %}

{% trans "Physical hosts" %}

{% for physical_host in objects %} {% endfor %}
{% trans "Hostname" %} {% trans "IP Address" %}
{{ physical_host.hostname }} {% for addr in physical_host.ipaddresses %} {{ addr }}
{% endfor %}
{% endif %} {% if rel_obj_type == "clusters" %}

{% trans "Clusters" %}

{% for cluster in objects %} {% endfor %}
{% trans "Name" %} {% trans "Type" %}
{{ cluster.name }} {{ cluster.type }}
{% endif %} {% endfor %} {% else %}

{% trans "No related objects found." %}

{% endif %} {% endblock %}