{% load i18n %} {% if attention.expired or attention.review_due or attention.stale or attention.no_conduit or attention.outbound_only %}
| # | {% if show_site %}{% trans "Site" %} | {% endif %}{% trans "From zone" %} | {% trans "To zone" %} | {% trans "Protocol / ports" %} | {% trans "Access" %} | {% trans "Through" %} | {% trans "Remote access" %} | {% trans "Allowed" %} | {% trans "Last seen" %} | {% trans "Evidence" %} |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ forloop.counter }} | {% if show_site %}{{ f.destination_zone.site|linkify|placeholder }} | {% endif %}{{ f.source_zone|linkify }}{% if f.source_zone.purdue_level %} {% badge f.source_zone.purdue_level bg_color=f.source_zone.get_purdue_level_color %}{% endif %} | {{ f.destination_zone|linkify }}{% if f.destination_zone.purdue_level %} {% badge f.destination_zone.purdue_level bg_color=f.destination_zone.get_purdue_level_color %}{% endif %} |
{{ f.get_protocol_display|placeholder }}{% if f.port_mappings %} {{ f.ports_display }}{% endif %}
{% if f.connection != 'client-server' %}
{% badge f.get_connection_display bg_color=f.get_connection_color %}
{% if f.broker_zone %}{% trans "in" %} {{ f.broker_zone|linkify }}{% endif %}
{% if f.topics %}{{ f.topics|join:", " }} {% endif %}
{% endif %}
|
{% for value, label, color in f.get_access_display %}{% badge label bg_color=color %} {% empty %}{{ ''|placeholder }}{% endfor %} | {% for hop in f.hops.all %}{{ hop.hop|linkify }}{% if not forloop.last %} → {% endif %}{% empty %}{{ ''|placeholder }}{% endfor %} | {% checkmark f.remote_access %} | {% badge f.get_allowed_display bg_color=f.get_allowed_color %} {% if f.is_expired %}{% trans "expired" %}{% endif %} {% if f.is_review_due %}{% trans "review due" %}{% endif %} | {{ f.last_seen|date:"Y-m-d"|placeholder }} |
{% with lines=f.evidence_lines %}
{% if lines.1 %}
{{ lines.0 }}{{ lines.1|linebreaksbr }} |