summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-05-22 19:29:32 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-05-22 19:29:32 +0200
commit5f0e95bcdc96adf9cca09c46af6dc029713a036e (patch)
treee914d15ce9797f66c81cf693b23a4e87fc6c678d
parenteece73ef9ff29078dd896bb65880a110e34ef658 (diff)
downloadwww-5f0e95bcdc96adf9cca09c46af6dc029713a036e.tar.gz
www-5f0e95bcdc96adf9cca09c46af6dc029713a036e.tar.bz2
www-5f0e95bcdc96adf9cca09c46af6dc029713a036e.zip
host: handle services with special ports
-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 %}