summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-05-08 18:08:04 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-05-08 18:08:04 +0200
commit6665d923eddfcb312111e81fd9604f336e5d1e31 (patch)
tree51c18d23e75dd00b8fc00d9ddf0d9694046061e4 /templates
parent21b322cc64118f8a3acc6b924eba0bea8190aca3 (diff)
downloadwww-6665d923eddfcb312111e81fd9604f336e5d1e31.tar.gz
www-6665d923eddfcb312111e81fd9604f336e5d1e31.tar.bz2
www-6665d923eddfcb312111e81fd9604f336e5d1e31.zip
order interfaces by device and some fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/host.html18
-rw-r--r--templates/index.html2
2 files changed, 14 insertions, 6 deletions
diff --git a/templates/host.html b/templates/host.html
index d298158..432ff29 100644
--- a/templates/host.html
+++ b/templates/host.html
@@ -19,11 +19,18 @@
</dl>
</div>
- <div class="tab-pane" id="interfaces">
- <ul>
- {{#addresses}}
- <li>{{address}}/{{netmask}} ({{interface}})</li>
- {{/addresses}}
+ <div class="tab-pane row" id="interfaces">
+ {{#interfaces}}
+ <div class="span6">
+ <h3>{{device}}</h3>
+ <ul>
+ {{#addresses}}
+ <li>{{address}}/{{netmask}}</li>
+ {{/addresses}}
+ </ul>
+ </div>
+ {{/interfaces}}
+ {{^interfaces}}<p class="centering">no network interfaces</p>{{/interfaces}}
</ul>
</div>
@@ -43,6 +50,7 @@
<td>{{proto}}</td>
</tr>
{{/ports}}
+ {{^ports}}<tr><td class="centering" colspan="4">no ports open</td></tr>{{/ports}}
</tbody>
</table>
</div>
diff --git a/templates/index.html b/templates/index.html
index 7454fc4..1933e65 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,7 +4,7 @@
<ul id="hosts" class="row">
{{#hosts}}
<li class="span2 thumbnail">
- <a data-uri="{{uri}}" href="#">{{name}}</a>
+ <a data-uri="{{uri}}">{{name}}</a>
</li>
{{/hosts}}
</ul>