{% extends "base.html" %} {% block title %}Jobs — POPS{% endblock %} {% block content %}
Print Jobs
{# ── Search bar ── #}
{% if q %} × {% endif %}
{% if active_bracket %}
{{ active_bracket.name }} {% if bracket_gross_total is not none %} {{ "%.2f"|format(bracket_gross_total) }} gross total {% endif %} × clear filter
{% elif q %}

Results for {{ q }}

{% endif %}
{% if jobs %} {% for j in jobs %} {% endfor %}
UUID Customer File Printer Material Status Created
{% if j.priority %}{% endif %} {{ j.job_uuid[:8] if j.job_uuid else '—' }} {{ j.customer or '—' }} {{ j.file_name or j.name or '—' }} {{ j.printer.name if j.printer else '—' }} {% if j.job_material %} {% set count = spool_map.get((j.job_material, j.job_color or ''), 0) %} {% if count >= 2 %} {% elif count == 1 %} {% else %} {% endif %} {{ j.job_material }}{% if j.job_color %} · {{ j.job_color }}{% endif %} {% else %}—{% endif %} {% set s = j.status.value %} {% if s == 'printing' %}printing {% elif s == 'done' %}done {% elif s == 'failed' %}failed {% elif s == 'cancelled' %}cancelled {% else %}queued {% endif %} {{ j.created_at.strftime('%d.%m.%Y %H:%M') }}
{% else %}
{% if q %}No jobs match "{{ q }}".{% else %}No jobs yet.{% endif %}
{% endif %}
{% if hidden_count %} {% set sep = '&' if (q or bracket_id) else '?' %} {% set show_all_url = '/jobs?show_all=1' ~ ('&bracket_id=' ~ bracket_id if bracket_id else '') ~ ('&q=' ~ q if q else '') %}

{{ hidden_count }} finished job{{ 's' if hidden_count != 1 else '' }} older than 24 h hidden. Show all

{% endif %} {# ── Add Job Modal ── #} {% endblock %}