blob: e01916a4804a2334f7a70299b29d5d4b32c0fb00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{% extends "dashboard/table.html" %}
{% load staticfiles %}
{% block table %}
<thead>
<tr>
<th>Name</th>
<th>Architecture</th>
<th>Profile</th>
<th>Booked</th>
<th>Working</th>
</tr>
</thead>
<tbody>
{% for host in hosts %}
<tr>
<td>
{{ host.name }}
</td>
<td>
{{ host.arch }}
</td>
<td>
<a href="../profile/{{ host.flavor.id }}">{{ host.flavor.name }}</a>
</td>
<td>
{% if host.allocation != null %}
Yes
{% else %}
No
{% endif %}
</td>
<td>
{% if host.allocation.reason == "maintenance" %}
No
{% else %}
Yes
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
{% endblock table %}
{% block tablejs %}
<script type="text/javascript">
$(document).ready(function () {
$('#table').DataTable({
scrollX: true,
"order": [[0, "asc"]]
});
});
</script>
{% endblock tablejs %}
|