Fix error when sorting Job list by object.
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / virtual_machine / vmfield_status.html
blob1b47aa093ede957954407445be54c7fbb70e6053
1 {% load webmgr_tags %}
2 {% load i18n %}
3 {% with record as vm %}
4 {% with vm.info as info %}
5 {% if vm.error %}
6 <div class="icon_error" title="{% trans "Ganeti API Error" %}: {{vm.error}}, last status was {{ value|render_instance_status }}"></div>
7 {% else %}
8 {% if vm.pending_delete %}
9 <div class="icon_deleting" title="delete in progress"></div>
10 {% else %}
11 {% if info.admin_state %}
12 {% if info.oper_state %}
13 <div class="icon_running" title="running"></div>
14 {% else %}
15 <div class="icon_error" title="{{ value|render_instance_status }}"></div>
16 {% endif %}
17 {% else %}
18 {% if info.oper_state %}
19 <div class="icon_error" title="{{ value|render_instance_status }}"></div>
20 {% else %}
21 <div class="icon_stopped" title="stopped"></div>
22 {% endif %}
23 {% endif %}
24 {% endif %}
25 {% endif %}
26 {% endwith %}
27 {% endwith %}