Working now
{% if running %}
{% for job in running %}
{% call m.row(job.name, job.state,
[("step", job.current_step),
("progress", job.progress ~ "/" ~ job.total_steps),
("on", job.resource),
("started", job.started)],
none, "row-" ~ job.id, job.description, job.status) %}
{{ m.follow_button("Logs", job.name, job.log_url) }}
{{ m.action_button("Cancel", job.cancel_endpoint,
"Cancel " ~ job.name ~ "? The step already running is left to finish, and the machine is left half changed.",
"Cancelled " ~ job.name) }}
{% endcall %}
{% endfor %}
{% else %}
Nothing is running. This machine is idle.
{% endif %}
Recently finished
{% if recent %}
{% for job in recent %}
{% call m.row(job.name, job.state,
[("on", job.resource),
("result", job.status),
("finished", job.finished)],
none, "row-" ~ job.id, job.description) %}
{{ m.badge(job.state, job.status) }}
{% endcall %}
{% if job.error %}
{{ m.problem(job.fix, job.error) }}
{% endif %}
{% if job.output %}
Output of {{ job.name }}
{{ job.output }}
{% endif %}
{% endfor %}
{% else %}
Nothing has finished on this machine yet.
{% endif %}
{% endblock %}