{% load i18n %}

OT

{% if firmware %} {% endif %} {% if lifecycle_installed %} {% endif %} {% if enforced %} {% endif %} {% if hop_flows %} {% endif %}
{% trans "Purdue level" %} {% if purdue_level %}{% badge purdue_level_label bg_color=purdue_level_color %}{% else %}{{ ''|placeholder }}{% endif %}
{% trans "Firmware" %} {{ firmware }}
{% trans "End of support" %} {% if end_of_support %} {% badge end_of_support.date|date:"Y-m-d" bg_color=end_of_support.color %} {% if end_of_support.kind == 'security' %}{% trans "security fixes" %}{% else %}{% trans "support" %}{% endif %}, {{ end_of_support.source }} {% else %}{{ ''|placeholder }}{% endif %}
{% trans "Zones" %} {% for zone in zones %} {{ zone|linkify }} {% badge zone.get_zone_type_display bg_color=zone.get_zone_type_color %}{% if zone.purdue_level %} {% badge zone.purdue_level bg_color=zone.get_purdue_level_color %}{% endif %}{% if zone.sl_target %} SL-T {{ zone.sl_target_display }}{% endif %}{% if not forloop.last %}
{% endif %} {% empty %} {{ ''|placeholder }} {% endfor %}
{% trans "Enforces conduits" %} {% for c in enforced %}{{ c|linkify }}{% if not forloop.last %}, {% endif %}{% endfor %}
{% trans "Flows through it" %} {% for f in hop_flows %}{{ f|linkify }} {% badge f.get_allowed_display bg_color=f.get_allowed_color %}{% if not forloop.last %}
{% endif %}{% endfor %}
{% if services or bridges %} {% for svc in services %} {% endfor %} {% for bus in bridges %} {% endfor %}
{% trans "Industrial service" %}{% trans "Role" %}{% trans "Ports / bus" %}
{{ svc.get_protocol_display }} {% badge svc.get_role_display bg_color=svc.get_role_color %} {% if svc.fieldbus %}{{ svc.fieldbus|linkify }}{% if svc.address %} {{ svc.address }}{% endif %} {% elif svc.service %}{{ svc.ports_display }} {% else %}{{ ''|placeholder }}{% endif %}
{% trans "Gateway for" %} {{ bus|linkify }} {{ bus.get_medium_display }} {{ bus.get_protocol_display|placeholder }}
{% endif %} {% if flows %} {% for f in flows %} {% endfor %}
{% trans "Flow" %}{% trans "From" %}{% trans "To" %}{% trans "Allowed" %}
{{ f|linkify }}{% if f.remote_access %} {% endif %} {{ f.source_zone|linkify }} {{ f.destination_zone|linkify }} {% badge f.get_allowed_display bg_color=f.get_allowed_color %}{% if f.is_expired %} {% trans "expired" %}{% endif %}
{% if flow_count > flows|length %} {% endif %} {% elif zones %}
{% trans "No flows recorded for these zones." %}
{% endif %}