From f9780f645bc94f2f79fc4e266e671d15232d4b9d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Mar 2014 02:41:32 +0000 Subject: Change HTML views to use htmlviewfunctions.displayheader Modified some models to change labels --- cron-listjobs-html.lsp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cron-listjobs-html.lsp') diff --git a/cron-listjobs-html.lsp b/cron-listjobs-html.lsp index 6dd3b14..b9759d3 100644 --- a/cron-listjobs-html.lsp +++ b/cron-listjobs-html.lsp @@ -48,9 +48,12 @@ local function createmoveform(name) end %> -

Cron Jobs

+<% +local header_level = htmlviewfunctions.displayheader(view, page_info) +header_level = htmlviewfunctions.incrementheader(header_level) +%> <% for i,tabl in ipairs(view.value) do %> -

<%= html.html_escape(tabl.period) %>

+<% htmlviewfunctions.displayheader(cfe({label=tabl.period}), page_info, header_level) %> <% if #tabl.jobs == 0 then %>

No jobs

<% else %> -- cgit v1.2.3