From 004023d829e773fc5e7221238034c2de27735896 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 28 May 2013 20:17:24 +0200 Subject: host: do not display empty entries --- templates/host.html | 8 +++++--- templates/index.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/host.html b/templates/host.html index 6bb66fe..5913913 100644 --- a/templates/host.html +++ b/templates/host.html @@ -25,10 +25,12 @@
hostname
{{hostname}}
-
os
{{os}}
-
arch
{{arch}}
+
os
{{os|default('unknown')}}
+
arch
{{arch|default('unknonw')}}
+ {% if vserver %}
vserver
{{vserver}}
- {% if vserver_host is defined %} + {% endif %} + {% if vserver_host %}
vserver_host
{{vserver_host}}
{% endif %} {% if maintainers is defined %} diff --git a/templates/index.html b/templates/index.html index 043136e..b0a5e98 100644 --- a/templates/index.html +++ b/templates/index.html @@ -37,7 +37,7 @@ {% endif %}

-