diff options
-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> |