diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-04 02:41:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-04 02:41:32 +0000 |
commit | f9780f645bc94f2f79fc4e266e671d15232d4b9d (patch) | |
tree | ba25e6d23f9a89891d4a01c5d1ffe4c59718c914 /health-proc-html.lsp | |
parent | b0f4fadb7b62297b6dbd574b2a7d8eee0f990eb4 (diff) | |
download | acf-alpine-baselayout-f9780f645bc94f2f79fc4e266e671d15232d4b9d.tar.bz2 acf-alpine-baselayout-f9780f645bc94f2f79fc4e266e671d15232d4b9d.tar.xz |
Change HTML views to use htmlviewfunctions.displayheader
Modified some models to change labels
Diffstat (limited to 'health-proc-html.lsp')
-rw-r--r-- | health-proc-html.lsp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/health-proc-html.lsp b/health-proc-html.lsp index 443e34e..dbf2bf4 100644 --- a/health-proc-html.lsp +++ b/health-proc-html.lsp @@ -1,10 +1,14 @@ -<% local view = ... %> +<% local view, viewlibrary, page_info, session = ... %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -<h1>Hardware information</h1> +<% +local header_level = htmlviewfunctions.displayheader(view, page_info) +header_level = htmlviewfunctions.incrementheader(header_level) +%> -<h2>Processor</h2> +<% htmlviewfunctions.displayheader(cfe({label="Processor"}), page_info, header_level) %> <pre><%= html.html_escape(view.value.processor.value) %></pre> -<h2>Memory</h2> +<% htmlviewfunctions.displayheader(cfe({label="Memory"}), page_info, header_level) %> <pre><%= html.html_escape(view.value.memory.value) %></pre> |