summaryrefslogtreecommitdiffstats
path: root/chrony-details-html.lsp
diff options
context:
space:
mode:
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) %>