diff options
Diffstat (limited to 'quagga-bgpexpert-html.lsp')
-rw-r--r-- | quagga-bgpexpert-html.lsp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/quagga-bgpexpert-html.lsp b/quagga-bgpexpert-html.lsp new file mode 100644 index 0000000..9a2abe2 --- /dev/null +++ b/quagga-bgpexpert-html.lsp @@ -0,0 +1,16 @@ +<? local form, viewlibrary, page_info, session = ... ?> +<? require("viewfunctions") ?> + +<? if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("bgpstatus") +end ?> + +<? +local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") +local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp") +func(form, viewlibrary, page_info, session) +?> + +<? if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].startstop then + viewlibrary.dispatch_component("bgpstartstop") +end ?> |