diff options
author | yves <steve.harrison@gmx.net> | 2013-08-15 12:01:37 +0200 |
---|---|---|
committer | yves <steve.harrison@gmx.net> | 2013-08-15 12:01:37 +0200 |
commit | b783d6f67852aae381034e4e3c9a6d84fd8144e5 (patch) | |
tree | 0116ea9fe0424b3c5cbf146f044ef06a758eed0d | |
parent | 18d2e7074f053fb3ba5890795988b9f3b2769606 (diff) | |
download | www-b783d6f67852aae381034e4e3c9a6d84fd8144e5.tar.gz www-b783d6f67852aae381034e4e3c9a6d84fd8144e5.tar.bz2 www-b783d6f67852aae381034e4e3c9a6d84fd8144e5.zip |
fix problem with empty tabs
-rw-r--r-- | templates/host.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/host.html b/templates/host.html index bf30fd2..f16e4d6 100644 --- a/templates/host.html +++ b/templates/host.html @@ -7,9 +7,15 @@ <ul class="nav nav-tabs"> <li class="active"><a href="#info" data-toggle="tab">Info</a></li> + {% if ports is iterable %} <li><a href="#ports" data-toggle="tab">Ports</a></li> + {% endif %} + {% if interfaces is iterable %} <li><a href="#interfaces" data-toggle="tab">Interfaces</a></li> + {% endif %} + {% if services is defined %} <li><a href="#services" data-toggle="tab">Services</a></li> + {% endif %} <li class="pull-right"><a id="index" href="index.html">back to index</a></li> </ul> |