From 5f0e95bcdc96adf9cca09c46af6dc029713a036e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 22 May 2013 19:29:32 +0200 Subject: host: handle services with special ports --- templates/host.html | 16 ++++++++++++++-- 1 file 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] %} - {{service}} - default + + {% if service is mapping %} + {{service.items()[0][0]}} + {% else %} + {{service}} + {% endif %} + + + {% if service is mapping %} + {{service.items()[0][1]}} + {% else %} + default + {% endif %} + {{service_category}} {% endfor %} -- cgit v1.2.3-1-g7c22