From 7e64eb8e0b8f581df3fca94abf832690e2d43a5a Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Thu, 23 May 2013 13:21:32 +0200 Subject: Fixed: check for string instead use mapping test --- templates/host.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/host.html b/templates/host.html index 8ab7ae2..6bb66fe 100644 --- a/templates/host.html +++ b/templates/host.html @@ -108,17 +108,17 @@ {% for service in services[service_category] %} - {% if service is mapping %} - {{service.items()[0][0]}} - {% else %} + {% if service is string %} {{service}} + {% else %} + {{service.items()[0][0]}} {% endif %} - {% if service is mapping %} - {{service.items()[0][1]}} - {% else %} + {% if service is string %} default + {% else %} + {{service.items()[0][1]}} {% endif %} {{service_category}} -- cgit v1.2.3-1-g7c22