diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-10 07:04:00 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-10 07:04:00 +0000 |
commit | f89b6d884af1ce1507fea24675b360cdf6e3a1c0 (patch) | |
tree | 902bee89a1c94a580f1adeaee8183c0256d16fe7 /iptables-details-html.lsp | |
parent | 8483bc397f2e6adb2befa2153b8c375684bae441 (diff) | |
download | acf-iptables-f89b6d884af1ce1507fea24675b360cdf6e3a1c0.tar.bz2 acf-iptables-f89b6d884af1ce1507fea24675b360cdf6e3a1c0.tar.xz |
Changes to use new htmlviewfunctions functions
Diffstat (limited to 'iptables-details-html.lsp')
-rw-r--r-- | iptables-details-html.lsp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/iptables-details-html.lsp b/iptables-details-html.lsp index 8b6fbe0..49b6f21 100644 --- a/iptables-details-html.lsp +++ b/iptables-details-html.lsp @@ -1,14 +1,17 @@ -<% local data, viewlibrary = ... +<% local data, viewlibrary, page_info, session = ... 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) %> <% for i,tab in ipairs({"filter", "nat", "mangle"}) do %> - <h3><%= html.html_escape(tab) %></h3> + <% htmlviewfunctions.displaysectionstart(cfe({label=tab}), page_info, header_level2) %> <table> <tr><td><%= html.html_escape(data.value[tab].chains) %> Chains</td></tr> <tr><td><%= html.html_escape(data.value[tab].rules) %> Rules</td></tr> </table> + <% htmlviewfunctions.displaysectionend(header_level2) %> <% end %> +<% htmlviewfunctions.displaysectionend(header_level) %> |