{% extends "base.html" %} {% block title %}Dashboard{% endblock %} {% block content %}
| Facility | Inspections | Avg Score |
|---|---|---|
| {{ f.name }} | {{ f.count }} | {{ f.avg }}% |
| Date | Facility | Area | {% if current_user.role != 'inspector' %}Inspector | {% endif %}Score | Status |
|---|---|---|---|---|---|
| {{ insp.inspection_date.strftime('%Y-%m-%d %H:%M') }} | {{ insp.facility.name }} | {{ insp.area.name if insp.area else '—' }} | {% if current_user.role != 'inspector' %}{{ insp.inspector.username }} | {% endif %}{% if insp.overall_score %} {{ insp.overall_score }}% {% else %} — {% endif %} | {{ insp.status|title }} |