summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-05-08 16:39:57 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2013-05-08 16:39:57 +0200
commit21b322cc64118f8a3acc6b924eba0bea8190aca3 (patch)
treea0e4e52259bdb1113b41e72fbd21521cf9ab48e0 /templates
downloadwww-21b322cc64118f8a3acc6b924eba0bea8190aca3.tar.gz
www-21b322cc64118f8a3acc6b924eba0bea8190aca3.tar.bz2
www-21b322cc64118f8a3acc6b924eba0bea8190aca3.zip
initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/host.html51
-rw-r--r--templates/index.html11
2 files changed, 62 insertions, 0 deletions
diff --git a/templates/host.html b/templates/host.html
new file mode 100644
index 0000000..d298158
--- /dev/null
+++ b/templates/host.html
@@ -0,0 +1,51 @@
+<script id="hostinfo" type="text/html">
+<h1>{{name}}</h1>
+
+<ul class="nav nav-tabs">
+ <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 class="pull-right"><a id="index" href="">back to index</a></li>
+</ul>
+
+<div class="tab-content">
+ <div class="tab-pane active" id="info">
+ <dl class="dl-horizontal">
+ <dt>hostname</dt><dd>{{hostname}}</dd>
+ <dt>os</dt><dd>{{os}}</dd>
+ <dt>arch</dt><dd>{{arch}}</dd>
+ <dt>vserver</dt><dd>{{vserver}}</dd>
+ <dt>vserver-host</dt><dd>{{vserver-host}}</dd>
+ </dl>
+ </div>
+
+ <div class="tab-pane" id="interfaces">
+ <ul>
+ {{#addresses}}
+ <li>{{address}}/{{netmask}} ({{interface}})</li>
+ {{/addresses}}
+ </ul>
+ </div>
+
+ <div class="tab-pane" id="ports">
+ <table class="table table-stripped table-hover">
+ <thead>
+ <tr>
+ <th>Port</th><th>IP</th><th>Process</th><th>Protocol</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#ports}}
+ <tr>
+ <td>{{port}}</td>
+ <td>{{ip}}</td>
+ <td>{{process}}</td>
+ <td>{{proto}}</td>
+ </tr>
+ {{/ports}}
+ </tbody>
+ </table>
+ </div>
+</div>
+
+</script>
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..7454fc4
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,11 @@
+<script id="hosts" type="text/html">
+<h1>Hostinfo</h1>
+
+<ul id="hosts" class="row">
+{{#hosts}}
+ <li class="span2 thumbnail">
+ <a data-uri="{{uri}}" href="#">{{name}}</a>
+ </li>
+{{/hosts}}
+</ul>
+</script>