{% load i18n %}
{% for key, label, color, count in register.buckets %}
{{ count }} {{ label }}
{% endfor %}
{% if not register.tenant %}{% endif %} {% regroup register.rows by bucket as groups %} {% for group in groups %} {% for r in group.list %} {% if not register.tenant %}{% endif %} {% for level in r.levels %} {% endfor %} {% endfor %} {% empty %} {% endfor %}
{% trans "Status" %} {% trans "Zone / conduit" %} {% trans "Site" %}{% trans "Tenant" %}{% trans "Assessment" %} {% trans "Step" %} {% trans "Unmitigated" %} {% trans "Residual" %} {% trans "Tolerable" %} {% trans "Next review" %} {% trans "Ways in" %} {% trans "Findings" %}
{% badge r.bucket_label bg_color=r.bucket_color %}{% if r.accepted_until %}
{% blocktrans with date=r.accepted_until|date:"Y-m-d" %}until {{ date }}{% endblocktrans %}
{% endif %}
{{ r.subject|linkify }} {% if r.kind == 'conduit' %}{% trans "conduit" %}{% elif r.purdue_level %}L{{ r.purdue_level }}{% endif %}{% if r.sl_target %} ยท SL-T {{ r.sl_target }}{% endif %} {{ r.site|linkify|placeholder }}{% for t in r.tenants %}{{ t|linkify }}{% if not forloop.last %}, {% endif %}{% empty %}{{ ''|placeholder }}{% endfor %} {% if r.approved %}{{ r.approved.get_kind_display|cut:" (ZCR 2)"|cut:" (ZCR 5)" }} {{ r.approved.assessed_on|date:"Y-m-d" }}{% endif %} {% if r.in_progress %} {% if r.approved %}
{% endif %} {{ r.in_progress.get_kind_display|cut:" (ZCR 2)"|cut:" (ZCR 5)" }} {{ r.in_progress.assessed_on|date:"Y-m-d" }} {% badge r.in_progress.get_status_display bg_color=r.in_progress.get_status_color %} {% endif %} {% if not r.approved and not r.in_progress %} {% if perms.netbox_ot.add_riskassessment %} {% trans "Assess" %} {% else %}{{ ''|placeholder }}{% endif %} {% endif %}
{{ r.step|default:"" }}{% if level %}{% badge level.0 bg_color=level.1 %}{% else %}{{ ''|placeholder }}{% endif %}{% if r.next_review %}{{ r.next_review|date:"Y-m-d" }}{% else %}{{ ''|placeholder }}{% endif %} {{ r.ways_in }}{% if r.remote %} {{ r.remote }} {% trans "remote" %}{% endif %} {% if r.findings.error %}{{ r.findings.error }}{% endif %} {% if r.findings.warning %}{{ r.findings.warning }}{% endif %} {% if not r.findings.error and not r.findings.warning %}0{% endif %}
{% trans "No zones or conduits in this scope." %}