From 38be13224a35c42f11267a4c81220fb6a5f04adb Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Jun 2009 15:00:46 +0000 Subject: Changed status to use openrc status, changed startstop to enable all actions regardless of status. --- app/startstop-html.lsp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'app') diff --git a/app/startstop-html.lsp b/app/startstop-html.lsp index 924f14d..c98208b 100644 --- a/app/startstop-html.lsp +++ b/app/startstop-html.lsp @@ -1,12 +1,5 @@ <% local data, viewlibrary, page_info = ... %> -<% local reverseactions = {} -data.value.actions = data.value.actions or {} -local actions = data.value.actions.value or {"start", "stop", "restart"} -for i,act in ipairs(actions) do - reverseactions[act] = i -end %> -

Management

<% if data.value.result then %> @@ -21,10 +14,9 @@ end %>
" method="POST">
Program control-panel
-<% if reverseactions.start then %>><% end %> -<% if reverseactions.stop then %>><% end %> -<% if reverseactions.restart then %>><% end %> -<% if reverseactions.reload then %>><% end %> +<% for i,act in ipairs(data.value.actions.value) do %> + +<% end %>
-- cgit v1.2.3