From c83af31a999f4f29532db0dc22638a142a91171e Mon Sep 17 00:00:00 2001 From: yves Date: Tue, 21 May 2013 23:48:56 +0200 Subject: rewrite as static site generator --- templates/host.html | 149 ++++++++++++++++++++++++++++++--------------------- templates/index.html | 52 ++++++++++++++---- 2 files changed, 130 insertions(+), 71 deletions(-) (limited to 'templates') diff --git a/templates/host.html b/templates/host.html index 79559b2..feed11b 100644 --- a/templates/host.html +++ b/templates/host.html @@ -1,61 +1,90 @@ - + + + + + +
+
+ +
+ +

{{hostname}}

+ + + +
+
+
+
hostname
{{hostname}}
+
os
{{os}}
+
arch
{{arch}}
+
vserver
{{vserver}}
+ {% if vserver_host is defined %} +
vserver_host
{{vserver_host}}
+ {% endif %} +
+
+ +
+ {% for group in addresses | groupby('interface') %} +
+

{{ group.grouper }}

+
    + {% for address in group.list %} +
  • {{address['address']}} /{{address['netmask']}}
  • + {% else %} +
  • no address
  • + {% endfor %} +
+
+ {% else %} +

no network interfaces

+ {% endfor %} +
+ +
+ + + + + + + + {% for port in ports %} + + + + + + + {% else%} + + {% endfor %} + +
PortIPProcessProtocol
{{port['port']}}{{port['ip']}}{{port['process']}}{{port['proto']}}
no ports open
+
+
+ +
- {{/interfaces}} - {{^interfaces}}

no network interfaces

{{/interfaces}} - -
- -
- - - - - - - - {{#ports}} - - - - - - - {{/ports}} - {{^ports}}{{/ports}} - -
PortIPProcessProtocol
{{port}}{{ip}}{{process}}{{proto}}
no ports open
-
- - - + + + + diff --git a/templates/index.html b/templates/index.html index 3873911..bace5c7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,11 +1,41 @@ - + + + + + Hostinfo: Overview + + + + + + + + + + + + + +
+
+ +
+ +

Hostinfo

+ + +
+
+
+ + -- cgit v1.2.3-1-g7c22