summaryrefslogtreecommitdiffstats
path: root/openntpd-logfile-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-14 19:30:29 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-14 19:30:29 +0000
commit6f3662eb2e408ef2e281626f52419bc966d638cd (patch)
tree67403c1d48ab4dc9a5c147ffe452c77fe1c42f6d /openntpd-logfile-html.lsp
parentacba7201c5e2680a092dee1314cfa70cc85896ce (diff)
downloadacf-openntpd-6f3662eb2e408ef2e281626f52419bc966d638cd.tar.bz2
acf-openntpd-6f3662eb2e408ef2e281626f52419bc966d638cd.tar.xz
Cleaned up the code. Moved functions to library instead (to be able to reuse code)
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@569 ab2d0c66-481e-0410-8bed-d214d4d58bed
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