From 2c426875d6306883433e8b336aa3b9852a22bfe0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 Jan 2009 21:58:23 +0000 Subject: Modified chrony to add online/offline buttons to startstop. part 2 git-svn-id: svn://svn.alpinelinux.org/acf/chrony/trunk@1670 ab2d0c66-481e-0410-8bed-d214d4d58bed --- chrony-startstop-html.lsp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 chrony-startstop-html.lsp diff --git a/chrony-startstop-html.lsp b/chrony-startstop-html.lsp new file mode 100644 index 0000000..2dafac5 --- /dev/null +++ b/chrony-startstop-html.lsp @@ -0,0 +1,28 @@ +<% local data, viewlibrary, page_info = ... %> + +

Management

+
+
" method="POST"> +
Program control-panel
+
+> +> +> +
+
Connection control
+
+> +> +
+
+ +<% if data.value.result then %> +
Previous action result
+
+<% if data.value.result.value ~= "" then %> +

<%= string.gsub(data.value.result.value, "\n", "
") %>

+<% end if data.value.result.errtxt then %> +

<%= string.gsub(data.value.result.errtxt, "\n", "
") %>

+<% end end %> +
+
-- cgit v1.2.3