From 4943770cd49f3fae629b91913c54cdecad0ae398 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 26 May 2009 16:03:44 +0000 Subject: Update for alpine 1.9 openrc and minor changes for RAM disk and modules. --- rc-status-html.lsp | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) (limited to 'rc-status-html.lsp') diff --git a/rc-status-html.lsp b/rc-status-html.lsp index a234798..b366c07 100644 --- a/rc-status-html.lsp +++ b/rc-status-html.lsp @@ -1,41 +1,23 @@ <% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> -<% if session.editresult then %> -

Command Result

- <% if session.editresult.errtxt then io.write('

' .. string.gsub(html.html_escape(session.editresult.errtxt), "\n", "
") .. "

\n") end - if session.editresult.descr then io.write('

' .. string.gsub(html.html_escape(session.editresult.descr), "\n", "
") .. "

\n") end - for name,val in pairs(session.editresult.value) do - if val.errtxt then io.write('

' .. string.gsub(html.html_escape(val.errtxt), "\n", "
") .. "

\n") end - end - session.editresult = nil -end %> +<% displaycommandresults({"edit"}, session) %>

<%= html.html_escape(view.label) %>

<% if session.permissions.rc.edit then %> - + <% end %> - - + <% for i,item in ipairs(view.value) do %> - <% if session.permissions[page_info.controller].edit then - local result = viewlibrary.dispatch_component(page_info.controller.."/edit", {servicename=item.servicename}, true) - for name,val in pairs(result.value) do val.name=name end - if result.value.kill.value then result.value.kill.checked = "" end - if result.value.system.value then result.value.system.checked = "" end %> - " method="POST"> - - - - - <% else %> - - + <% if session.permissions.rc.edit then %> + + <% end %>
UpdateActionService NameSequenceKill on shutdownSystem init serviceService NameRunlevels
<%= html.html_escape(item.servicename) %><%= html.form.hidden(result.value.servicename) %><%= html.form.text(result.value.sequence) %><%= html.form.checkbox(result.value.kill) %><%= html.form.checkbox(result.value.system) %>
<%= html.html_escape(item.servicename) %><%= html.html_escape(item.sequence) %><%= html.html_escape(item.kill) %><%= html.html_escape(item.system) %>
<%= html.link{value="edit?servicename="..item.servicename.."&redir="..page_info.orig_action, label="Edit " } %> <% end %> + <%= html.html_escape(item.servicename) %><%= html.html_escape(table.concat(item.runlevels, ", ")) %>
-- cgit v1.2.3