summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/host.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/host.html b/templates/host.html
index 136ae96..8ab7ae2 100644
--- a/templates/host.html
+++ b/templates/host.html
@@ -107,8 +107,20 @@
{% if services[service_category] is iterable %}
{% for service in services[service_category] %}
<tr>
- <td>{{service}}</td>
- <td>default</td>
+ <td>
+ {% if service is mapping %}
+ {{service.items()[0][0]}}
+ {% else %}
+ {{service}}
+ {% endif %}
+ </td>
+ <td>
+ {% if service is mapping %}
+ {{service.items()[0][1]}}
+ {% else %}
+ default
+ {% endif %}
+ </td>
<td>{{service_category}}</td>
</tr>
{% endfor %}