Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / job / detail.html
blob079548de6e7e5f207675b80737e323bd6cb99a29
1 {% extends "menu_base.html" %}
2 {% load webmgr_tags %}
3 {% load i18n %}
4 {% block head %}
6 {% endblock %}
8 {% block content %}
10 <h1 class="breadcrumb">
11 {% if cluster_admin %}
12 <a href="{% url cluster-detail job.cluster.slug %}#virtual_machines">{{job.cluster.hostname|abbreviate_fqdn}}</a>
13 {% else %}
14 <span>{{job.cluster.hostname|abbreviate_fqdn}}</span>
15 {% endif %}
16 : <span>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 "ganeti/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 {% if finished %}
44 <tr><td>{% trans "Result" %}:</td><td>{{ info.opresult|index:forloop.counter0 }}</td></tr>
45 {% endif %}
47 {% endwith %}
48 {% for field, value in op|job_fields %}
49 <tr><td>{{ field }}</td><td>{{ value }}</td>
50 {% endfor %}
53 </table>
55 {% endfor %}
57 {% endwith %}
59 {% endblock %}