{# A compact list of past runs (Jobs): status, progress while running, a summary, the time, and any error text. Import it `with context` (it reads assistant_help). `help_page` is the page path "Ask Yaffo" attaches; `show_label` names what ran, for lists that mix kinds (Index Photos lists index and import runs). Unfinished runs get a Cancel button. #} {% from "macros/local_datetime.html" import local_datetime %} {% from "components/job_details.html" import job_details_block %} {% macro run_history_list(runs, help_page, show_label=false) %}
{{ run.problem }}
{% endif %} {% if run.details %}{{ job_details_block(run.details, "run-history-details", run.job_id) }}{% endif %}