diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-11-03 21:30:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-11-03 21:30:32 +0000 |
commit | fc670b19af9f6dd4027dcec0fc6cc0035860f9e2 (patch) | |
tree | b86af704ba7bbef308e28014f3c0162bf2fea627 /iptables-details-html.lsp | |
download | acf-iptables-fc670b19af9f6dd4027dcec0fc6cc0035860f9e2.tar.bz2 acf-iptables-fc670b19af9f6dd4027dcec0fc6cc0035860f9e2.tar.xz |
Created iptables ACF to directly view / edit rules. Status, view, and expert work. Form to edit / create rules not functional yet.
git-svn-id: svn://svn.alpinelinux.org/acf/iptables/trunk@1575 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'iptables-details-html.lsp')
-rw-r--r-- | iptables-details-html.lsp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/iptables-details-html.lsp b/iptables-details-html.lsp new file mode 100644 index 0000000..bbdbd9a --- /dev/null +++ b/iptables-details-html.lsp @@ -0,0 +1,21 @@ +<% local data, viewlibrary = ... +require("viewfunctions") +--[[ DEBUG INFORMATION +io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") +io.write(html.cfe_unpack(data)) +io.write("</span>") +--]] +%> + +<% viewlibrary.dispatch_component("status") %> + +<H2><%= data.label %></H2> +<DL> +<% for i,tab in ipairs({"filter", "nat", "mangle"}) do %> + <H3><%= tab %></H3> + <TABLE> + <TR><%= data.value[tab].chains %> Chains</TR> + <TR><%= data.value[tab].rules %> Rules</TR> + </TABLE> +<% end %> +</DL> |