3 <table id=
"vmlist" class=
"sorted">
6 <th class=
"status" order_by=
"status"></th>
7 <th order_by=
"hostname">{% trans
"Name" %}
</th>
9 <th order_by=
"cluster__hostname">{% trans
"Cluster" %}
</th>
11 <th order_by=
"cluster__hostname">{% trans
"Node" %}
</th>
12 <th order_by=
"operating_system">{% trans
"OS" %}
</th>
13 <th order_by=
"ram">{% trans
"RAM" %}
</th>
14 <th order_by=
"disk_size">{% trans
"Disk Space" %}
</th>
15 <th order_by=
"virtual_cpus">{% trans
"vCPUs" %}
</th>
19 {% for vm in vms.object_list %}
20 {% if not vm.deleted %}
21 {% with vm.info as info %}
25 <div class=
"icon_error" title=
"{% trans "Ganeti API Error
" %}: {{vm.error}}, last status was {{ vm.status|render_instance_status }}"></div>
27 {% if vm.pending_delete %}
28 <div class=
"icon_deleting" title=
"delete in progress"></div>
30 {% if info.admin_state %}
31 {% if info.oper_state %}
32 <div class=
"icon_running" title=
"running"></div>
34 <div class=
"icon_error" title=
"{{ vm.status|render_instance_status }}"></div>
37 {% if info.oper_state %}
38 <div class=
"icon_error" title=
"{{ vm.status|render_instance_status }}"></div>
40 <div class=
"icon_stopped" title=
"stopped"></div>
48 <a href=
"{% url instance-detail vm.cluster.slug vm.hostname %}">
55 <a href=
"{% url cluster-detail vm.cluster.slug %}">
56 {{ vm.cluster|abbreviate_fqdn }}
59 {{ vm.cluster|abbreviate_fqdn }}
63 <td>{{ info.pnode|abbreviate_fqdn }}
</td>
64 <td>{{ vm.operating_system|render_os }}
</td>
65 <td>{{ vm.ram|render_storage }}
</td>
66 <td>{{ vm.disk_size|render_storage }}
</td>
67 <td>{{ vm.virtual_cpus }}
</td>
71 <tr class=
"none"><td colspan=
"100%">{% trans
"No Virtual Machines" %}
</td></tr>
76 <ul class=
"pagination">
77 {% if vms.has_previous %}
79 <a href=
"{% url virtualmachine-table %}?page={{ vms.previous_page_number }}">« {% trans
"Previous" %}
</a>
83 {% for page in vms.paginator.page_range %}
84 <li class=
"{%if page == vms.number%}active{%endif%} page">{{ page }}
</li>
89 <a href=
"{% url virtualmachine-table %}?page={{ vms.next_page_number }}">{% trans
"Next" %}
»</a>