diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-11 02:17:19 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-11 02:17:19 +0000 |
commit | 7c43e1e53cb1f9bd0d47be6095ab34d462a27cbb (patch) | |
tree | f0fe3251da379397b24c73d6410ee286d3bf60ef /opennhrp-show-html.lsp | |
parent | a3b838873fd04b83285fe3f955d012d5a0da71c5 (diff) | |
download | acf-opennhrp-7c43e1e53cb1f9bd0d47be6095ab34d462a27cbb.tar.bz2 acf-opennhrp-7c43e1e53cb1f9bd0d47be6095ab34d462a27cbb.tar.xz |
Changes to use new htmlviewfunctions functions
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) %> |