aboutsummaryrefslogtreecommitdiff
path: root/pyenc/templates/class.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyenc/templates/class.html')
-rw-r--r--pyenc/templates/class.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/pyenc/templates/class.html b/pyenc/templates/class.html
new file mode 100644
index 0000000..bfae1b2
--- /dev/null
+++ b/pyenc/templates/class.html
@@ -0,0 +1,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 #}