From 45ceb4770df9774a37346f7e0d1ef4f8acec46a9 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:50:26 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- rrdtool-config-html.lsp | 2 +- rrdtool-editgraphcfg-html.lsp | 19 +++++-------- rrdtool-listgraphcfg-html.lsp | 62 ++++++++++++++++++++++++++++--------------- rrdtool-listgraphs-html.lsp | 17 ++++++------ rrdtool-listrrd-html.lsp | 62 ++++++++++++++++++++++++++++--------------- rrdtool-newgraphcfg-html.lsp | 24 ++++++++--------- rrdtool-viewgraph-html.lsp | 12 ++++----- 7 files changed, 114 insertions(+), 84 deletions(-) diff --git a/rrdtool-config-html.lsp b/rrdtool-config-html.lsp index 2c24500..fa879a1 100644 --- a/rrdtool-config-html.lsp +++ b/rrdtool-config-html.lsp @@ -5,7 +5,7 @@ htmlviewfunctions = require("htmlviewfunctions") <% htmlviewfunctions.displaycommandresults({"install","editgraphcfg"}, session) %> <% htmlviewfunctions.displaycommandresults({"delete", "rrdinfo"}, session) %> -

Configure

+

Configure

<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("listrrd") diff --git a/rrdtool-editgraphcfg-html.lsp b/rrdtool-editgraphcfg-html.lsp index 1d5f446..6f29307 100644 --- a/rrdtool-editgraphcfg-html.lsp +++ b/rrdtool-editgraphcfg-html.lsp @@ -3,36 +3,31 @@ <% html = require("acf.html") %> <% if form.type == "form" then %> -

Configuration

-

Expert Configuration

+

Configuration

+

Expert Configuration

<% else %> -

View File

+

View File

<% end %> -

File Details

-
+

File Details

<% htmlviewfunctions.displayitem(form.value.filename) htmlviewfunctions.displayitem(form.value.filesize) htmlviewfunctions.displayitem(form.value.mtime) %> -
-

File Content

+

File Content

<% if form.type == "form" then %> <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> <% htmlviewfunctions.displayformstart(form) %> <% else %> -
<% end %> -<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> -<% if form.value.filecontent.descr then %>

<%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>

<% end %> +<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> +<% if form.value.filecontent.descr then %>

<%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>

<% end %> <% if form.type == "form" then %> <% htmlviewfunctions.displayformend(form) %> -<% else %> -
<% end %> diff --git a/rrdtool-listgraphcfg-html.lsp b/rrdtool-listgraphcfg-html.lsp index a8657da..0beebc4 100644 --- a/rrdtool-listgraphcfg-html.lsp +++ b/rrdtool-listgraphcfg-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"delete"}, session) %> + <% if viewlibrary and viewlibrary.dispatch_component then @@ -25,16 +25,17 @@ end %> <% icon=html.html_escape(page_info.wwwprefix..page_info.staticdir) .. "/tango/16x16/apps/utilities-system-monitor.png" %> -

Graphs

+

Graphs

<% for grp,v in pairs(data) do %> -

<% io.write(grp) %>

+

<% io.write(grp) %>

<% for k,graph in pairs(v) do %> -
- <% io.write(graph.label or "Unknown") %>
-
<% io.write(graph.descr or "") %>
-
+
+
+ <% io.write(graph.descr or "") %> +
<% end %> <% end %> diff --git a/rrdtool-listrrd-html.lsp b/rrdtool-listrrd-html.lsp index 65a5ae5..c98f4a0 100644 --- a/rrdtool-listrrd-html.lsp +++ b/rrdtool-listrrd-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + +