From db50c4a219e0199bebd8a9fd70a87a4d3c6a123e Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:16:54 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- rc-status-html.lsp | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) (limited to 'rc-status-html.lsp') diff --git a/rc-status-html.lsp b/rc-status-html.lsp index ef9173f..9e8d2b8 100644 --- a/rc-status-html.lsp +++ b/rc-status-html.lsp @@ -2,12 +2,29 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"edit", "startstop"}, session) %> -

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

-
- - +

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

+
+ <% if viewlibrary.check_permission("edit") then %> <% end %> @@ -15,23 +32,23 @@ - + + <% for i,item in ipairs(view.value) do %> - + <% if viewlibrary.check_permission("edit") then %> - - - - - + + + + + <% end %> -
ActionStatus Runlevels Description
<%= html.link{value="edit?servicename="..item.servicename.."&redir="..page_info.orig_action, label="Edit " } %> + <%= html.link{value="edit?servicename="..item.servicename.."&redir="..page_info.orig_action, label="Edit " } %> <% end %> <% if viewlibrary.check_permission("startstop") and item.actions then for i,a in ipairs(item.actions) do print(html.link{value="startstop?servicename="..item.servicename.."&redir=status&submit=true&action="..a, label=a:gsub("^%l", string.upper).." " }) end end %> - <%= html.html_escape(item.servicename) %><%= html.html_escape(item.status) %><%= html.html_escape(table.concat(item.runlevels, ", ")) %> <%= html.html_escape(item.description) %>
<%= html.html_escape(item.servicename) %><%= html.html_escape(item.status) %><%= html.html_escape(table.concat(item.runlevels, ", ")) %> <%= html.html_escape(item.description) %>
-
+ -- cgit v1.2.3