{% extends "base.html" %} {% from "partials/_macros.html" import status_badge, type_badge %} {% set active_section = "jobs" %} {% block body_class %}no-subnav{% endblock %} {% block title %}Job: {{ job.name }} | SPIKEE{% endblock %} {% block content %}
{# ── Back + action bar ── #}
← All Jobs {% if job.status == 'running' %}
{% else %}
{% endif %} {% if dataset_filename %} View Dataset {% endif %} {% if result_keys %} {% for key in result_keys %} {% if result_keys | length == 1 %}View Results{% else %}Results {{ loop.index }}{% endif %} {% endfor %} {% endif %}
{{ type_badge(job.type) }} {{ status_badge(job.status) }}
{# ── Job header card ── #}
Name
{{ job.name }}
Created
{{ job.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if job.returncode is not none %}
Exit Code
{{ job.returncode }}
{% endif %}
{% if job.args %}
Command
spikee {{ job.args | join(' ') }}
{% endif %}
{# ── Log panel ── #}
Output {% if job.status == 'running' %} Live {% endif %}
{% for line in job.log %}{{ line | e }}
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}