summaryrefslogtreecommitdiffstats
path: root/chrony-logfile-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-22 21:02:48 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-22 21:02:48 +0000
commitda850749abcdb675610d4c9805bdf3efaa764de8 (patch)
treedd97f2a3b8121dc552a60259244b32818800ac82 /chrony-logfile-html.lsp
parente1b24fbcaf560a158f5dc99e4ea5debf9bdaf38f (diff)
downloadacf-chrony-da850749abcdb675610d4c9805bdf3efaa764de8.tar.bz2
acf-chrony-da850749abcdb675610d4c9805bdf3efaa764de8.tar.xz
Update of chrony to use new libraries and standard lsp files.
git-svn-id: svn://svn.alpinelinux.org/acf/chrony/trunk@1482 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'chrony-logfile-html.lsp')
-rw-r--r--chrony-logfile-html.lsp32
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 %>