diff options
Diffstat (limited to 'chrony-logfile-html.lsp')
-rw-r--r-- | chrony-logfile-html.lsp | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/chrony-logfile-html.lsp b/chrony-logfile-html.lsp index f3d889e..24991da 100644 --- a/chrony-logfile-html.lsp +++ b/chrony-logfile-html.lsp @@ -1,31 +1,7 @@ -<% local form = ... %> -<% +<% local data, viewlibrary = ... require("viewfunctions") %> -<H1>SYSTEM INFO</H1> -<DL> -<% -local myform = form.status -local tags = { "status", "version", "autostart", } -displayinfo(myform,tags,"viewonly") -%> -</DL> - -<form name="myform" action="" method="POST"> -<h1>LOGFILE</h1> -<h2>Details</h2> -<DL> -<% -local myform = form.logfile -local tags = { "filename", "filesize", "mtime", "sumerrors", } -displayinfo(myform,tags,"viewonly") -%> -</DL> - -<H3>FILE CONTENT</H3> -<% -io.write(html.form[myform.filecontent.type](myform.filecontent)) -%> - -</form> +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("alpine-baselayout/logfiles/view", {name="/var/log/messages", grep="chronyd"}) +end %> |