summaryrefslogtreecommitdiffstats
path: root/openntpd-logfile-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-logfile-html.lsp')
-rw-r--r--openntpd-logfile-html.lsp20
1 files changed, 16 insertions, 4 deletions
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp
index 593a8d1..41c7f95 100644
--- a/openntpd-logfile-html.lsp
+++ b/openntpd-logfile-html.lsp
@@ -1,17 +1,29 @@
<? local view = ... ?>
-<html>
-<body>
+
+<h1>SYSTEM INFO</h1>
+
+<dl>
+<dt>Program status
+<dd><? if (view.status.enabled) then io.write('Enabled') else io.write('Disabled') end ?></dd>
+</dl>
+
+<dl>
+<dt>Program version</dt>
+<dd><?= view.status.version ?></dd>
+</dl>
+
+
<h1>LOGFILE</h1>
<h2>Details</h2>
+<dl>
<dt>Logfile</dt>
<dd><?= view.logfile.cmd ?></dd>
+</dl>
<h2>Content</h2>
<textarea name=""><? io.write(view.logfile.value) ?></textarea>
-</body>
-</html>
<?
--[[ DEBUG INFORMATION