From 7ccca7213d3137b0764ef02165c44f4bd3373f45 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 12 Aug 2008 15:53:20 +0000 Subject: Modified dansguardian to use new status, startstop, and expert (replaced plain) actions. git-svn-id: svn://svn.alpinelinux.org/acf/dansguardian/trunk@1380 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dansguardian-category-html.lsp | 42 +++++++----------------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) (limited to 'dansguardian-category-html.lsp') diff --git a/dansguardian-category-html.lsp b/dansguardian-category-html.lsp index 6d6115c..2f94048 100644 --- a/dansguardian-category-html.lsp +++ b/dansguardian-category-html.lsp @@ -1,23 +1,6 @@ <% require("viewfunctions") - local form = ... - local data = form.option - local service = form.service - local config = form.service.config - - local srv1fill = "" - local srv2fill = "disabled" - if form.info.status.value == "Enabled" then - srv1fill = "disabled" - srv2fill = "" - end - - local ifthen = function( variable, value, result ) - if variable == value then - io.write( result ) - end - end - + local form, viewlibrary = ... %> <% @@ -28,14 +11,9 @@ io.write("") --]] %> -

SYSTEM INFO

-
-<% -local myform = form.info -local tags = { "status", "version", "autostart", } -displayinfo(myform,tags,"viewonly") -%> -
+<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("status") +end %>

Modify Categories

@@ -73,12 +51,6 @@ end -

MANAGEMENT

-
-
-
Daemon control
> -> -> -<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %>
<% io.write( service.message.descr ) %>
<% end %>
-
-
+<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("startstop") +end %> -- cgit v1.2.3