From 8e3a16eb5bd0f1c038437c61244bb9407a1db573 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 11 Apr 2014 02:24:19 +0000 Subject: Changes to use new htmlviewfunctions functions --- openntpd-config-html.lsp | 4 ++-- 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 %> -

<%= html.html_escape(data.label) %>

-<% -htmlviewfunctions.displayitem(data.value.date) -htmlviewfunctions.displayitem(data.value.timechanged) -%> +<% htmlviewfunctions.displayitem(data, page_info) %> -- cgit v1.2.3