aboutsummaryrefslogtreecommitdiff
path: root/pyenc/templates/host.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyenc/templates/host.html')
-rw-r--r--pyenc/templates/host.html18
1 files changed, 12 insertions, 6 deletions
diff --git a/pyenc/templates/host.html b/pyenc/templates/host.html
index 84e76e3..917d535 100644
--- a/pyenc/templates/host.html
+++ b/pyenc/templates/host.html
@@ -1,24 +1,30 @@
{% extends "base.html" %}
{% block content %}
-<h1>Host ‘{{ title }}’</h1>
+<h1>Host ‘{{ host.fqdn }}’</h1>
+<p class="summary">{{ host.summary }}</p>
<dl>
<dt>Environment</dt>
- <dd><a href="/environment/{{ env }}">{{ env }}</a></dd>
+ <dd><a href="/environment/{{ host.environment.name }}"
+ >{{ host.environment.name }}</a></dd>
<dt>Direct Classes</dt>
<dd>
<ul>
- {% for cls in classes %}
- <li>{{ cls|safe }}</li>
+ {% for cls in host.classes %}
+ <li><a href="/class/{{ cls.name }}">{{ cls.name }}</a></li>
{% endfor %}
</ul>
</dd>
+ <dt>All Classes</dt>
+ <dd id="all-classes"></dd>
<!--
- - indirect classes
- - basic description
- basic system info
- link to further documentation
- notes
-->
</dl>
+<script>
+ let node = document.getElementById('all-classes')
+ populate_host_classes(node, "{{ host.fqdn }}")
+</script>
{% endblock %}
{# ft:jinja #}