From f58774fdf82fffaa1548ac22a1a4ce978ddddfa0 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 29 Jun 2009 16:43:00 +0000 Subject: Initial commit on expert view-file --- rrdtool-expert-html.lsp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 rrdtool-expert-html.lsp (limited to 'rrdtool-expert-html.lsp') diff --git a/rrdtool-expert-html.lsp b/rrdtool-expert-html.lsp new file mode 100644 index 0000000..6cbb910 --- /dev/null +++ b/rrdtool-expert-html.lsp @@ -0,0 +1,25 @@ +<% local form, viewlibrary, page_info, session = ... %> +<% require("viewfunctions") %> + +<% +--[[ Temporary comment to speed things up +%> +<% displaycommandresults({"startstop"}, session) %> + +<% 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 %> -- cgit v1.2.3