From f01a9d9d097d6f1bfdbab8386206d23afd460937 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Mar 2011 07:53:02 +0000 Subject: Change for acf-core-0.13.0 --- tinydns-config-html.lsp | 6 ------ tinydns-listfiles-html.lsp | 2 +- tinydns-status-html.lsp | 13 +++++++++++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp index d02ed37..bcbe58a 100755 --- a/tinydns-config-html.lsp +++ b/tinydns-config-html.lsp @@ -2,8 +2,6 @@ require("viewfunctions") %> -<% displaycommandresults({"startstop"}, session) %> - <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %> @@ -13,7 +11,3 @@ end %> form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action displayform(form) %> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("startstop") -end %> diff --git a/tinydns-listfiles-html.lsp b/tinydns-listfiles-html.lsp index eab386f..a2ce083 100644 --- a/tinydns-listfiles-html.lsp +++ b/tinydns-listfiles-html.lsp @@ -3,7 +3,7 @@ require("viewfunctions") %> <% displaycommandresults({"delete", "edit", "editfile"}, session) %> -<% displaycommandresults({"newfile"}, session, true) %> +<% displaycommandresults({"newfile", "startstop"}, session, true) %>

Configuration

Edit/View existing Domains

diff --git a/tinydns-status-html.lsp b/tinydns-status-html.lsp index 49274e9..aae23b9 100644 --- a/tinydns-status-html.lsp +++ b/tinydns-status-html.lsp @@ -3,6 +3,7 @@ require("viewfunctions") %> <% displaycommandresults({"install","edit"}, session) %> +<% displaycommandresults({"startstop"}, session) %>

System Info

@@ -12,14 +13,18 @@ displayitem(data.value.status) displayitem(data.value.version) if data.value.version and data.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then %> - Install +
Install package
+
+
<% end displayitem(data.value.autostart) if not (data.value.version and data.value.version.errtxt) and data.value.autostart and data.value.autostart.errtxt and viewlibrary.check_permission("alpine-baselayout/rc/edit") then %> - Schedule autostart +
Enable autostart
+
+
<% end @@ -27,3 +32,7 @@ displayitem(data.value.configdir) displayitem(data.value.listen) %>
+ +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then + viewlibrary.dispatch_component("startstop") +end %> -- cgit v1.2.3