{% extends "base.html" %}
{% block title %}Job — Academic Studio{% endblock %}
{% block content %}
Background job Status: {{ job.status }}
{% if job.kind == 'faculty' %}Collecting faculty directory
{% elif job.kind == 'sheet_import' %}Importing spreadsheet
{% elif job.kind == 'match' %}Rebuilding shortlist
{% elif job.kind in ['enrich_researcher', 'enrich_catalog', 'refresh_monitors'] %}Updating research evidence
{% else %}Job {{ job.id }}{% endif %}
{{ job.error }}
{% endif %} {% if job.status in ['done', 'failed', 'cancelled', 'interrupted'] %}Progress: 100%
{% endif %} {% if job.kind == 'faculty' %}Faculty directory collection {% if job.status == 'done' %}landed in your local library{% else %}did not complete{% endif %}. Continue:
{% elif job.kind == 'sheet_import' %}Spreadsheet import {% if job.status == 'done' %}finished in the background — your workspace stayed responsive{% else %}did not complete{% endif %}.
{% elif job.kind in ['enrich_researcher', 'enrich_catalog', 'refresh_monitors'] %}Research enrichment {% if job.status == 'done' %}updated local evidence{% else %}stopped{% endif %}.
{% elif job.kind == 'match' %}Shortlist rebuild {% if job.status == 'done' %}is ready{% else %}stopped{% endif %}.
{% else %} {% endif %} {% if job.status != 'done' %} {% endif %}This page refreshes automatically. Jobs that take longer than a few seconds show progress here.
{{ job.progress }}%