blob: 3c8b809141aad5dcb1dcb7dd2bdab612a9fdf659 (
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
|
{% extends "base.html" %}
{% block content %}
<h1>Class ‘{{ title }}’</h1>
<a href="/environment/{{ env }}">{{ env }}</a>
<dl>
<dt>Environments</dt>
<dd>
<ul>
{% for env in cls.environments %}
<li><a href="/environment/{{env.name}}">{{ env.name }}</a></li>
{% endfor %}
</ul>
</dd>
<dt>Files</dt>
<dd>
<table>
<thead>
<th>Environment</th>
<th>Path</th>
<th>Checksum</th>
</thead>
<tbody>
{% for file in cls.files %}
<tr>
<td>{{ file.environment.name }}</td>
<td><a href="/file?environment={{ file.environment.name }}&path={{ file.path }}">{{ file.path }}</a></td>
<td><code>{{ file.checksum }}</code></td>
</tr>
{% endfor %}
</tbody>
</table>
<dt>Direct Hosts</dt>
<dd>
<ul>
{% for host in cls.hosts %}
<li><a href="/host/{{ host.fqdn }}">{{ host.fqdn }}</a></li>
{% endfor %}
</ul>
</dd>
<dt>All Hosts</dt>
<dd id="class-hosts">
</dd>
</dl>
<script>
let node = document.getElementById('class-hosts')
populate_class_hosts(node, "{{ title }}")
</script>
{% endblock %}
{# ft:jinja #}
|