diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-22 19:29:32 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-05-22 19:29:32 +0200 |
commit | 5f0e95bcdc96adf9cca09c46af6dc029713a036e (patch) | |
tree | e914d15ce9797f66c81cf693b23a4e87fc6c678d /templates/host.html | |
parent | eece73ef9ff29078dd896bb65880a110e34ef658 (diff) | |
download | www-5f0e95bcdc96adf9cca09c46af6dc029713a036e.tar.gz www-5f0e95bcdc96adf9cca09c46af6dc029713a036e.tar.bz2 www-5f0e95bcdc96adf9cca09c46af6dc029713a036e.zip |
host: handle services with special ports
Diffstat (limited to 'templates/host.html')
-rw-r--r-- | templates/host.html | 16 |
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 %} |