Added a proper job_detail page that display information, and reloads itself.
[ais.git] / html_templates / job.html
1 {% extends "base.html" %}
2
3 {% block tab_active_job %} id=tabactive{% endblock %}
4
5 {% block breadcrumbs %}
6 {{ block.super }}
7 / {{ job.id }}
8 {% endblock %}
9
10 {% block content %}
11
12 <h3>Job {{ job.id }}</h3>
13 <tt>{{ job.nice_command }}</tt><br>
14 {% if job.finish_time %}
15 Status: <b>Completed</b> at {{ job.finish_time|date:"Y-m-d H:i:s" }} UTC in {{ job.process_time }}<br>
16 Result: {% if job.result %}<b>Error {{ job.result }}</b>{% else %}<b>Success</b><br>
17 <a href="/job/{{ job.id }}/download" class=button>download</a>{% endif %}<br>
18 {% else %}
19     {% if job.start_time %}
20     Status: <b>Running</b> since {{ job.start_time }}.<br>
21     Pid: {{ job.pid }}<br>
22     {% else %}
23     Status: <b>Queued</b> since {{ job.queue_time }}.<br>
24     Position in jobs queue: {{ job.queue_rank }}<br>
25     {% endif %}
26 {% endif %}
27
28
29 {% endblock %}