diff options
author | yves <steve.harrison@gmx.net> | 2013-05-22 17:54:42 +0200 |
---|---|---|
committer | yves <steve.harrison@gmx.net> | 2013-05-22 17:54:42 +0200 |
commit | 28c4d5fb5420189b77878e6c0b690b2834f1b099 (patch) | |
tree | af9aa872edf49296c14793ca78077a6dbd574157 | |
parent | 260450eaa1b443dbc1a656ab7e245cfaa87fb260 (diff) | |
download | www-28c4d5fb5420189b77878e6c0b690b2834f1b099.tar.gz www-28c4d5fb5420189b77878e6c0b690b2834f1b099.tar.bz2 www-28c4d5fb5420189b77878e6c0b690b2834f1b099.zip |
host: add a service tab
-rw-r--r-- | templates/host.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/host.html b/templates/host.html index f862e27..438bc18 100644 --- a/templates/host.html +++ b/templates/host.html @@ -9,6 +9,7 @@ <li class="active"><a href="#info" data-toggle="tab">Info</a></li> <li><a href="#ports" data-toggle="tab">Ports</a></li> <li><a href="#interfaces" data-toggle="tab">Interfaces</a></li> + <li><a href="#services" data-toggle="tab">Services</a></li> <li class="pull-right"><a id="index" href="index.html">back to index</a></li> </ul> @@ -85,6 +86,36 @@ </tbody> </table> </div> + + {% if services is defined %} + <div class="tab-pane" id="services"> + <table id="servicetable" class="table table-striped table-hover tablesorter"> + <thead> + <tr> + <th>Name</th> + <th>Port</th> + <th>Visibility</th> + </tr> + </thead> + <tbody> + {% for service_category in services %} + {% if services[service_category] %} + {% for service in services[service_category] %} + <tr> + <td>{{service}}</td> + <td>default</td> + <td>{{service_category}}</td> + </tr> + {% endfor %} + {% endif %} + {% else %} + <tr><td class="centering" colspan="4">no services provoided</td></tr> + {% endfor %} + </tbody> + </table> + </div> + {% endif %} + </div> <script> |