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.lsp21
1 files changed, 21 insertions, 0 deletions
diff --git a/openntpd-logfile-html.lsp b/openntpd-logfile-html.lsp
new file mode 100644
index 0000000..748bd09
--- /dev/null
+++ b/openntpd-logfile-html.lsp
@@ -0,0 +1,21 @@
+<? local view = ... ?>
+<html>
+<body>
+<h1>LOGFILE</h1>
+
+<h2>Details</h2>
+
+<dt>Logfile</dt>
+<dd><?= view.logfile.cmd ?></dd>
+
+<h2>Content</h2>
+<textarea name="" style="width:100%;height:450px;"><? io.write(view.logfile.value) ?></textarea>
+</body>
+</html>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>