diff options
Diffstat (limited to 'templates/host.html')
-rw-r--r-- | templates/host.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/host.html b/templates/host.html index bf30fd2..9fa1b82 100644 --- a/templates/host.html +++ b/templates/host.html @@ -55,7 +55,9 @@ </dl> </div> + <div class="tab-pane row" id="interfaces"> + {% if addresses %} {% for group in addresses | select_with_attribute('vserver', False) | groupby('interface') %} <div class="span6"> <h3>{{ group.grouper }}</h3> @@ -70,6 +72,7 @@ {% else %} <p class="centering">no network interfaces</p> {% endfor %} + {% endif %} </div> <div class="tab-pane" id="ports"> @@ -83,6 +86,7 @@ </tr> </thead> <tbody> + {% set ports = ports or [] %} {% for port in ports %} <tr> <td>{{port['port']}}</td> @@ -97,8 +101,8 @@ </table> </div> - {% if services is defined %} <div class="tab-pane" id="services"> + {% if services is defined %} <table id="servicetable" class="table table-striped table-hover tablesorter"> <thead> <tr> @@ -135,9 +139,8 @@ {% endfor %} </tbody> </table> + {% endif %} </div> - {% endif %} - </div> <script> |