Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / node / table.html
blob3315857c2e6eb3cb060a08cb5802bcfdf00c6682
1 {% load i18n %}
2 {% load webmgr_tags %}
3 <script type="text/javascript" src="{{STATIC_URL}}/js/jquery.tablesorter.min.js"></script>
4 <script type="text/javascript">
5 $(function(){
6 $("#nodes .ram, #nodes .disk").progressBar(PBAR_CONF);
7 $("#nodes .sorted").tablesorter();
8 });
9 </script>
11 <table id="nodes" class="sorted">
12 <thead>
13 <tr>
14 <th class="status"></th>
15 <th>{% trans "Name" %}</th>
16 <th>{% trans "Memory Allocated [GiB]" %}</th>
17 <th>{% trans "Disk Allocated [GiB]" %}</th>
18 <th title="{% trans "CPUs (Allocated/Physical)" %}">{% trans "CPUs (A/P)" %}</th>
19 <th title="{% trans "Instances (Primary/Secondary)"%}">{% trans "Instances (P/S)" %}</th>
20 </tr>
21 </thead>
22 <tbody>
23 {% for node in nodes %}
24 <tr>
25 <td class="status">
26 {% if node.info.offline %}
27 <div class="icon_stopped" title="Offline"></div>
28 {% else %}
29 <div class="icon_running" title="Online"></div>
30 {% endif %}
31 </td>
32 <td>
33 <a href="{% url node-detail cluster.slug node.hostname %}">
34 {{ node.hostname|abbreviate_fqdn }}
35 </a>
36 </td>
37 <td class="ram">{% node_memory node %}</td>
38 <td class="disk">{% node_disk node %}</td>
39 <td>{{ cpus|index:node.id }} / {{ node.cpus }}</td>
40 <td>{{ node.info.pinst_cnt }} / {{ node.info.sinst_cnt }}</td>
41 </tr>
42 {% endfor %}
43 </tbody>
44 </table>