From 1471dfac72a978562aac19fa7a1396a0c04b5222 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:58:40 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- vlc-logfile-html.lsp | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/vlc-logfile-html.lsp b/vlc-logfile-html.lsp index 8bbb979..78baaa5 100644 --- a/vlc-logfile-html.lsp +++ b/vlc-logfile-html.lsp @@ -2,9 +2,8 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -

Logfile

-

File Details

-
+

Logfile

+

File Details

<% htmlviewfunctions.displayitem(form.value.filename) htmlviewfunctions.displayitem(form.value.filesize) @@ -13,11 +12,8 @@ htmlviewfunctions.displayitem(form.value.mtime) -- htmlviewfunctions.displayitem(form.value.grep) --end %> -
-

File Content

- -
+

File Content

<% if form.type == "form" then %> <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> <% htmlviewfunctions.displayformstart(form) %> @@ -26,26 +22,25 @@ htmlviewfunctions.displayitem(form.value.mtime) -<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> -<% if form.value.filecontent.descr then %>

<%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>

<% end %> +<% if form.value.filecontent.errtxt then %>

<%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>

<% end %> +<% if form.value.filecontent.descr then %>

<%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>

<% end %> <% if form.type == "form" then %> <% htmlviewfunctions.displayformend(form) %> <% end %> -
<% --[[ -print("

Debug info for page '"..tostring(page_info.action).."'

") +print("

Debug info for page '"..tostring(page_info.action).."'

") --form["value"]["filecontent"]["value"]=nil -print("

form

") +print("

form

") print(htmlviewfunctions.cfe_unpack(form)) -print("

viewlibrary

") +print("

viewlibrary

") print(htmlviewfunctions.cfe_unpack(viewlibrary)) -print("

page_info

") +print("

page_info

") print(htmlviewfunctions.cfe_unpack(page_info)) -print("

session

") +print("

session

") print(htmlviewfunctions.cfe_unpack(session)) --]] %> -- cgit v1.2.3