diff options
Diffstat (limited to 'opennhrp-show-html.lsp')
-rw-r--r-- | opennhrp-show-html.lsp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/opennhrp-show-html.lsp b/opennhrp-show-html.lsp index 0ea960a..96b4ef2 100644 --- a/opennhrp-show-html.lsp +++ b/opennhrp-show-html.lsp @@ -7,12 +7,11 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -<h2><%= html.html_escape(data.label) %></h2> -<% -htmlviewfunctions.displayitem(data.value.status) -%> -<div class='item'><p class='left'><%= html.html_escape(data.value.peers_list.label) %></p> -<div class='right'> +<% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> +<% htmlviewfunctions.displayitem(data.value.status) %> +<% htmlviewfunctions.displayitemstart() %> +<%= html.html_escape(data.value.peers_list.label) %> +<% htmlviewfunctions.displayitemmiddle() %> <% local found for intf,addresses in pairs(data.value.peers_list.value) do @@ -48,4 +47,5 @@ htmlviewfunctions.displayitem(data.value.status) end if not found then io.write("No peers found\n") end %> -</div></div><!-- end .item --> +<% htmlviewfunctions.displayitemend() %> +<% htmlviewfunctions.displaysectionend(header_level) %> |