diff options
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) %> |