{% extends "base.html" %} {% block title %}Reports & Analytics{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {# ── Sub-nav ── #} {% include 'reports/_subnav.html' %} {# ── Header + date filter ── #}
{{ start.strftime('%b %d, %Y') }} — {{ end.strftime('%b %d, %Y') }}
{{ label }}
| Facility | Contract | Current Period | Prior Period | Change | Inspections |
|---|---|---|---|---|---|
| {{ row.name }} | {{ row.contract }} | {{ '%.1f'|format(row.avg_score|float) }}% | {% if row.prior_avg is not none %} {{ '%.1f'|format(row.prior_avg|float) }}% {% else %} — {% endif %} | {% if row.delta is not none %} {% if row.delta > 0 %} +{{ '%.1f'|format(row.delta|float) }} {% elif row.delta < 0 %} {{ '%.1f'|format(row.delta|float) }} {% else %} 0.0 {% endif %} {% else %} No prior data {% endif %} | {{ row.count }} |
| Inspector | Inspections | Avg Score |
|---|---|---|
| {{ row.display_name }} | {{ row.count }} | {% if row.avg_score %} {{ '%.1f'|format(row.avg_score|float) }}% {% else %}—{% endif %} |
| Severity | Area | Description | |
|---|---|---|---|
| {{ issue.severity|title }} | {{ issue.area.name }} | {{ issue.description[:50] }}{% if issue.description|length > 50 %}…{% endif %} | View |
No open critical or high issues. 🎉