{% load i18n %}
{% trans "Enforcement targets" %}
{% if assigned_objects_panel.add_url and not rulebook_readonly %} {% trans "Add" %} {% endif %}
{% if assigned_objects_panel.is_empty %}

{% trans "No devices or virtual machines assigned to this rulebook." %} {% if assigned_objects_panel.add_url and not rulebook_readonly %} {% trans "Assign now." %} {% endif %}

{% else %} {% for host in assigned_objects_panel.hosts %}
{% if host.host_url %} {{ host.host_type_label }} {{ host.host_name }} {% else %} {{ host.host_type_label }} {{ host.host_name }} {% endif %} {% if host.has_unlinked_interfaces %} {% endif %} {% if host.remove_url and not rulebook_readonly %} {% endif %}
{% if host.has_unlinked_interfaces and not host.linked_interface_count %}
{% trans "No linked interfaces. Enable “All interfaces” to assign links." %}
{% endif %} {% for iface in host.interfaces %} {% empty %}
{% trans "No interfaces on this object." %}
{% endfor %}
{% endfor %} {% endif %}