summaryrefslogtreecommitdiffstats
path: root/openssh-expert-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-08-22 15:46:04 +0000
committerMika Havela <mika.havela@gmail.com>2008-08-22 15:46:04 +0000
commit9ead7ba1fd547c929a1fd7043dc34b631e2586c5 (patch)
tree1b501141be4cf2985cb891a1ba53f0ed1302937b /openssh-expert-html.lsp
parent9fd111c8eeb3dad74cda7a9acd036ab6d4abdcd9 (diff)
downloadacf-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
Diffstat (limited to 'openssh-expert-html.lsp')
-rw-r--r--openssh-expert-html.lsp16
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 %>