From 37a61d7a8f2538b1fcb0f9b636345c84d74d5cf6 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 10 Apr 2014 04:59:37 +0000 Subject: Changes to use new htmlviewfunctions functions --- lbu-status-html.lsp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lbu-status-html.lsp') diff --git a/lbu-status-html.lsp b/lbu-status-html.lsp index 58739d4..e3966b0 100644 --- a/lbu-status-html.lsp +++ b/lbu-status-html.lsp @@ -1,19 +1,14 @@ -<% local view, viewlibrary, pageinfo, session = ... +<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") %> -

System Info

<% if view.value.committed.value then view.value.committed.value = "There are no uncommitted files" else view.value.committed.value = "WARNING!\nUntil you commit, you will lose your changes at next reboot/shutdown!" end -view.value.committed.type = "string" -htmlviewfunctions.displayitem(view.value.committed) +view.value.committed.type = "text" -for name,value in pairs(view.value) do - if name ~= "committed" then - htmlviewfunctions.displayitem(value) - end -end %> +htmlviewfunctions.displayitem(view, page_info) +%> -- cgit v1.2.3