Merge branch 'bug/13917' into release/0.10.2
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / errors.html
blob81faeb69304a2885c97d3f91fbf25597f200a2d1
1 {% extends "menu_base.html" %}
2 {% load i18n %}
3 {% load webmgr_tags %}
5 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.tablesorter.min.js"></script>
7 {% block title %} {%trans "Errors" %} {% endblock %}
8 {% block content %}
9 {% if errors %}
10 <div id="errors_list">
11 <h2>Errors and Failures</h2>
12 <table class="sorted">
13 <thead><tr>
14 <th>{% trans "Object" %}</th>
15 <th>{% trans "Error Message" %}</th>
16 <th>{% trans "Date" %}</th>
17 </tr>
18 </thead>
19 <tbody>
20 {% for tuple in errors %}
21 {% with tuple.0 as is_ganeti_error %}
22 {% with tuple.1 as error %}
23 {% if is_ganeti_error %}
24 <tr class="gerror" id="gerror_{{error.pk}}">
25 <td>{% include "ganeti/overview/object_link.html" with record=error %}</td>
26 <td>{{ error.msg }}</td>
27 <td>{{ error.timestamp|date }}</td>
28 </tr>
29 {% else %}
30 <tr class="jerror" id="jerror_{{error.pk}}">
31 <td>{% include "ganeti/overview/object_link.html" with record=error %}</td>
32 <td><a href="{% url job-detail error.cluster.slug error.job_id %}">{% trans "Job" noop %}#{{error.job_id}}: {{ error.current_operation|format_job_op }}</a></td>
33 <td>{{ error.finished|date }}</td>
34 </tr>
35 {% endif %}
36 {% endwith %}
37 {% endwith %}
38 {% endfor %}
39 </tbody>
40 </table>
41 </div>
42 {% endif %}
43 {% endblock %}