summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-02-03 21:22:39 +0000
committerTed Trask <ttrask01@yahoo.com>2014-02-03 21:22:39 +0000
commitc6280065388fc882a0dd6526c8a66be19a3bd27a (patch)
treea4b38453be04e8eace995d61eb836453134aeeca
parent2346e801e26adccfaf61dbe7cabf20201a190055 (diff)
downloadacf-chrony-c6280065388fc882a0dd6526c8a66be19a3bd27a.tar.bz2
acf-chrony-c6280065388fc882a0dd6526c8a66be19a3bd27a.tar.xz
Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags
-rw-r--r--chrony-details-html.lsp12
-rw-r--r--chrony-keyfile-html.lsp10
2 files changed, 10 insertions, 12 deletions
diff --git a/chrony-details-html.lsp b/chrony-details-html.lsp
index 29d0e05..6db3274 100644
--- a/chrony-details-html.lsp
+++ b/chrony-details-html.lsp
@@ -5,12 +5,10 @@ html = require("acf.html")
<% viewlibrary.dispatch_component("status") %>
-<H2><%= html.html_escape(data.label) %></H2>
-<DL>
+<h2><%= html.html_escape(data.label) %></h2>
<% htmlviewfunctions.displayitem(data.value.time) %>
<% htmlviewfunctions.displayitem(data.value.tracking) %>
-</DL>
-<H3>Sources</H3>
-<DL><pre><%= html.html_escape(data.value.sources.value) %></pre></DL>
-<H3>Source Stats</H3>
-<DL><pre><%= html.html_escape(data.value.sourcestats.value) %></pre></DL>
+<h3>Sources</h3>
+<pre><%= html.html_escape(data.value.sources.value) %></pre>
+<h3>Source Stats</h3>
+<pre><%= html.html_escape(data.value.sourcestats.value) %></pre>
diff --git a/chrony-keyfile-html.lsp b/chrony-keyfile-html.lsp
index 0492c95..644483b 100644
--- a/chrony-keyfile-html.lsp
+++ b/chrony-keyfile-html.lsp
@@ -4,19 +4,19 @@
<% htmlviewfunctions.displaycommandresults({"enablekeyfile"}, session) %>
-<H1>Key File Status</H1>
-<DL>
+<h1>Key File Status</h1>
<%
htmlviewfunctions.displayitem(form.value.status)
if form.value.status.errtxt then
%>
-<dt></dt><dd><form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/enablekeyfile") %>">
+<div class='item'><p class='left'></p><div class='right'>
+<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/enablekeyfile") %>">
<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
-<input class="submit" type="submit" name="submit" value="Enable"></form></dd>
+<input class="submit" type="submit" name="submit" value="Enable"></form>
+</div></div><!-- end .item -->
<% end
%>
-</DL>
<%
local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1")