diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-08-22 15:46:04 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-08-22 15:46:04 +0000 |
commit | 9ead7ba1fd547c929a1fd7043dc34b631e2586c5 (patch) | |
tree | 1b501141be4cf2985cb891a1ba53f0ed1302937b | |
parent | 9fd111c8eeb3dad74cda7a9acd036ab6d4abdcd9 (diff) | |
download | acf-openssh-9ead7ba1fd547c929a1fd7043dc34b631e2586c5.tar.bz2 acf-openssh-9ead7ba1fd547c929a1fd7043dc34b631e2586c5.tar.xz |
Added a expert-page
git-svn-id: svn://svn.alpinelinux.org/acf/openssh/trunk@1397 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | openssh-expert-html.lsp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/openssh-expert-html.lsp b/openssh-expert-html.lsp new file mode 100644 index 0000000..d349048 --- /dev/null +++ b/openssh-expert-html.lsp @@ -0,0 +1,16 @@ +<% local form, viewlibrary, page_info, session = ... %> +<% require("viewfunctions") %> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("status") +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("startstop") +end %> |