{% for job in jobs %}
{# The zone is named on every row, so a copy-pasted line describes itself. #}
| {{ job.created_at | local_time }} |
{{ job.profile }} |
{# The counts are a second line in the Title cell, not a fifth column: the
headers and the empty-state colspan stay at four, and the narrow-screen
rule in app.css already wraps this cell. Guard on the filter returning
None, never on truthiness. #}
{{ job.title }}{% set counts = job | page_counts %}{% if counts %}{{ counts }}{% endif %}{% set removed = job | removed_pages %}{% if removed %}{{ removed }}{% endif %} |
{# Colour and label come from the vocabulary, never a state comparison
here. A job with no colour gets no class attribute at all. #}
{% set status_class = job.state | job_status_class(job.warning, job.error_category) %}
{{ job.state | job_label(job.warning, job.error_category) }}
|
{% endfor %}
{% if not jobs %}
| No scan history yet. |
{% endif %}