summaryrefslogtreecommitdiffstats
path: root/chrony-details-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-10 05:40:47 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-10 05:40:47 +0000
commit0ed315dc3cf0d6244d656e2d68fe577797c2e5f0 (patch)
tree90d36f66effb73dd21cf64f788ae2091f2d5a63a /chrony-details-html.lsp
parentc6280065388fc882a0dd6526c8a66be19a3bd27a (diff)
downloadacf-chrony-0ed315dc3cf0d6244d656e2d68fe577797c2e5f0.tar.bz2
acf-chrony-0ed315dc3cf0d6244d656e2d68fe577797c2e5f0.tar.xz
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'chrony-details-html.lsp')
-rw-r--r--chrony-details-html.lsp10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrony-details-html.lsp b/chrony-details-html.lsp
index 6db3274..47d4997 100644
--- a/chrony-details-html.lsp
+++ b/chrony-details-html.lsp
@@ -5,10 +5,14 @@ html = require("acf.html")
<% viewlibrary.dispatch_component("status") %>
-<h2><%= html.html_escape(data.label) %></h2>
+<% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %>
+<% local header_level2 = htmlviewfunctions.incrementheader(header_level) %>
<% htmlviewfunctions.displayitem(data.value.time) %>
<% htmlviewfunctions.displayitem(data.value.tracking) %>
-<h3>Sources</h3>
+<% htmlviewfunctions.displaysectionstart(data.value.sources, page_info, header_level2) %>
<pre><%= html.html_escape(data.value.sources.value) %></pre>
-<h3>Source Stats</h3>
+<% htmlviewfunctions.displaysectionend(header_level2) %>
+<% htmlviewfunctions.displaysectionstart(data.value.sourcestats, page_info, header_level2) %>
<pre><%= html.html_escape(data.value.sourcestats.value) %></pre>
+<% htmlviewfunctions.displaysectionend(header_level2) %>
+<% htmlviewfunctions.displaysectionend(header_level) %>