summaryrefslogtreecommitdiffstats
path: root/logfiles-view-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'logfiles-view-html.lsp')
-rw-r--r--logfiles-view-html.lsp34
1 files changed, 29 insertions, 5 deletions
diff --git a/logfiles-view-html.lsp b/logfiles-view-html.lsp
index f148b86..0923230 100644
--- a/logfiles-view-html.lsp
+++ b/logfiles-view-html.lsp
@@ -1,7 +1,31 @@
<? local view = ... ?>
-<html>
-<body>
-<h1>View file</h1>
+
+<h1>LOGFILE</h1>
+
+<h2>Details</h2>
+
+<dl>
+<dt>File name</dt>
+<dd><?= view.logfile.details.path ?></dd>
+</dl>
+
+<dl>
+<dt>File size</dt>
+<dd><?= view.logfile.details.size ?></dd>
+</dl>
+
+<dl>
+<dt>Last modified</dt>
+<dd><?= view.logfile.details.mtime ?></dd>
+</dl>
+
+<h2>Content</h2>
<textarea name=""><? io.write(view.logfile.value) ?></textarea>
-</body>
-</html>
+
+<?
+--[[ DEBUG INFORMATION
+require("debugs")
+io.write(debugs.variables(view))
+--]]
+?>
+