aboutsummaryrefslogtreecommitdiff
path: root/pyenc/templates/class.html
blob: bfae1b2385bc1e938b3d2532bdaf9d1b4760c70a (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
{% 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>Hosts</dt>
	<dd>
		<ul>
			{% for host in cls.hosts %}
			<li><a href="/host/{{ host.fqdn }}">{{ host.fqdn }}</a></li>
			{% endfor %}
		</ul>
	</dd>
</dl>
{% endblock %}
{# ft:jinja #}