diff options
-rw-r--r-- | templates/host.html | 8 | ||||
-rw-r--r-- | 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 @@ <dl class="dl-horizontal"> <dt>hostname</dt><dd>{{hostname}}</dd> - <dt>os</dt><dd>{{os}}</dd> - <dt>arch</dt><dd>{{arch}}</dd> + <dt>os</dt><dd>{{os|default('unknown')}}</dd> + <dt>arch</dt><dd>{{arch|default('unknonw')}}</dd> + {% if vserver %} <dt>vserver</dt><dd>{{vserver}}</dd> - {% if vserver_host is defined %} + {% endif %} + {% if vserver_host %} <dt>vserver_host</dt><dd>{{vserver_host}}</dd> {% 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 %} </p> - <ul class="ips"> + <ul class="ips inline"> {% for ip in host['addresses'] | select_with_attribute('vserver', False) | sort(attribute='address') %} <li>{{ip['address']}}</li> {% endfor %} |