summaryrefslogtreecommitdiffstats
path: root/shorewall-expert-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-expert-html.lsp')
-rw-r--r--shorewall-expert-html.lsp38
1 files changed, 38 insertions, 0 deletions
diff --git a/shorewall-expert-html.lsp b/shorewall-expert-html.lsp
new file mode 100644
index 0000000..1b638ca
--- /dev/null
+++ b/shorewall-expert-html.lsp
@@ -0,0 +1,38 @@
+<? local view = ... ?>
+<h1>SYSTEM INFO</h1>
+
+<dt>Program status</dt>
+<DD><?= view.status.status ?></DD>
+
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+
+<h1>CONFIGURATION</h1>
+
+<h2>Expert config</h2>
+<h3>List of configfiles</h3>
+
+<TABLE>
+ <TR style="background:#eee;font-weight:bold;">
+ <TD width="120px" align="left">File</TD>
+ <TD width="60px" align="right" style="padding-right:10px">Size</TD>
+ <TD align="left">Last Modified</TD>
+ </TR>
+
+
+<? for i = 1, table.maxn(view.filelist) do ?>
+ <TR>
+ <TD><?= html.link{value = view.url .. "/edit?name=" .. view.filelist[i].path , label=view.filelist[i].name } ?></TD>
+ <TD style="padding-right:10px" align="right"><?= view.filelist[i].filedetails.size ?></TD>
+ <TD><?= view.filelist[i].filedetails.mtime ?></TD>
+ </TR>
+<? end ?>
+</TABLE>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
+