diff options
-rw-r--r-- | openntpd-config-html.lsp | 4 | ||||
-rw-r--r-- | openntpd-details-html.lsp | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp index e4bf203..34e58b4 100644 --- a/openntpd-config-html.lsp +++ b/openntpd-config-html.lsp @@ -4,7 +4,7 @@ html = require("acf.html") %> <% if viewlibrary and viewlibrary.dispatch_component then -viewlibrary.dispatch_component("status") + viewlibrary.dispatch_component("status") end %> -<% htmlviewfunctions.displayitem(form, 1, page_info) %> +<% htmlviewfunctions.displayitem(form, page_info) %> diff --git a/openntpd-details-html.lsp b/openntpd-details-html.lsp index da4db3b..6c355a3 100644 --- a/openntpd-details-html.lsp +++ b/openntpd-details-html.lsp @@ -1,4 +1,4 @@ -<% local data, viewlibrary = ... +<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> @@ -7,8 +7,4 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -<h2><%= html.html_escape(data.label) %></h2> -<% -htmlviewfunctions.displayitem(data.value.date) -htmlviewfunctions.displayitem(data.value.timechanged) -%> +<% htmlviewfunctions.displayitem(data, page_info) %> |