Merge branch 'develop' into feature/search_autocomplete_haste
[ganeti_webmgr.git] / ganeti / templates / job / detail.html
blob4bd12a872db0b8067c73f9ababe2f7b20c05729b
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block head %}
6 {% endblock %}
8 {% block content %}
10 <h1>
11 {% if cluster_admin %}
12 <a class="breadcrumb" href="{% url cluster-detail job.cluster.slug %}#virtual_machines">{{job.cluster.hostname|abbreviate_fqdn}}</a>
13 {% else %}
14 <span class="breadcrumb">{{job.cluster.hostname|abbreviate_fqdn}}</span>
15 {% endif %}
16 : <span class="breadcrumb">Jobs</span>
17 : {{ job.job_id }}
18 </h1>
21 {% with job.info as info %}
23 <table>
24 <tr><th colspan="100%">{% trans "Overview" %}</th></tr>
25 <tr><td>{% trans "Status" %}</td><td>{{ job.status }}</td></tr>
26 <tr><td>{{ job.obj|class_name }}</td>
27 {% with job as error %}
28 {% include "overview/object_link.html" %}
29 {% endwith %}
30 </tr>
31 <tr><td>{% trans "Completed" %}</td><td>{{ job.finished|date }}</td></tr>
32 </table>
34 {% for op in info.ops %}
36 <table>
37 <tr><th colspan="100%">{{op.OP_ID|format_job_op}}</th></tr>
38 <tr><td>{% trans "Status" %}:</td><td>{{ info.opstatus|index:forloop.counter0 }}</td></tr>
39 <tr><td>{% trans "Started" %}:</td><td>{{ info.start_ts|index:forloop.counter0|timestamp|date }}</td></tr>
40 <tr><td>{% trans "Finished" %}:</td>
41 {% with info.end_ts|index:forloop.counter0 as finished %}
42 <td>{% if finished %}{{ finished|timestamp|date }}{% endif %}</td></tr>
43 {% endwith %}
44 </table>
46 {% with info.opresult|index:forloop.counter0 as job_result %}
47 {% if job_result %}
48 <pre>{{ job_result.1.0|format_job_log }}</pre>
49 {% endif %}
50 {% endwith %}
54 {% endfor %}
56 {% endwith %}
58 {% endblock %}