{% load i18n %} {% load fitcheck_extras %} {% comment %} Status icon is driven by the finding code, NOT by reading the message text. Pass codes are explicit so a future addition (e.g. another refit variant) won't fall through and accidentally render as a fail. Findings arrive already section-contiguous (the engine sorts by section order), so we regroup by section into per-section panels for visual separation. {% endcomment %} {% regroup findings by section as section_groups %} {% for group in section_groups %}
| {% translate "Doctrine Expects" %} | {% translate "Your Fit" %} | {% translate "Status" %} | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
{% if finding.expected_type %}
|
{% if finding.actual_type %}
|
{% comment %}Explanatory message rides the Status cell as a hover tooltip so it no longer clutters the table with a detail row.{% endcomment %}
{% if finding.code == "OK" or finding.code == "SUB" or finding.code == "REF" or finding.code == "FRF" or finding.code == "ANY" %} {% elif finding.code == "EXT" or finding.code == "UNV" %} {% else %} {% endif %} {% if finding.code == "OK" %} {{ finding.get_code_display }} {% elif finding.code == "SUB" %} {{ finding.get_code_display }} {% elif finding.code == "REF" %} {{ finding.get_code_display }} {% elif finding.code == "FRF" %} {{ finding.get_code_display }} {% elif finding.code == "ANY" %} {{ finding.get_code_display }} {% elif finding.code == "EXT" or finding.code == "UNV" %} {{ finding.get_code_display }} {% else %} {{ finding.get_code_display }} {% endif %} | ||||||||
{% if finding.allowed_alternatives %}
{% translate "Allowed Options" %}{% for alt in finding.allowed_alternatives %} {{ alt.name }} {% endfor %}
|
||||||||||
{% translate "No findings." %}
{% endfor %}