From e51d542c0648d3b0b7fb06b214edb3bda786cab7 Mon Sep 17 00:00:00 2001 From: Zach LeBar Date: Sat, 23 Feb 1980 04:31:51 +0000 Subject: Cleaning and refining the HTML. --- app/debug-html.lsp | 11 +++++++---- app/filedetails-html.lsp | 37 +++++++++++++++++++------------------ app/form-html.lsp | 2 +- 3 files changed, 27 insertions(+), 23 deletions(-) (limited to 'app') diff --git a/app/debug-html.lsp b/app/debug-html.lsp index ee49434..b768057 100644 --- a/app/debug-html.lsp +++ b/app/debug-html.lsp @@ -1,9 +1,12 @@ <% local data, viewlibrary, page_info, session = ... %> <% require("htmlviewfunctions") %> -

Debugging

-

View Data:

+ +

Debugging

+

View Data:

<%= htmlviewfunctions.cfe_unpack(data) %> -

Session:

+ +

Session:

<%= htmlviewfunctions.cfe_unpack(session) %> -

Page Info:

+ +

Page Info:

<%= htmlviewfunctions.cfe_unpack(page_info) %> diff --git a/app/filedetails-html.lsp b/app/filedetails-html.lsp index 101861d..dff6eee 100644 --- a/app/filedetails-html.lsp +++ b/app/filedetails-html.lsp @@ -2,36 +2,37 @@ <% require("htmlviewfunctions") %> <% if form.type == "form" then %> -

Configuration

-

Expert Configuration

+

Configuration

+

Expert Configuration

<% else %> -

View File

+

View File

<% end %> -

File Details

-
+ +

File Details

<% htmlviewfunctions.displayitem(form.value.filename) htmlviewfunctions.displayitem(form.value.filesize) htmlviewfunctions.displayitem(form.value.mtime) %> -
-

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) %> - -<% else %> -
+ <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> + <% htmlviewfunctions.displayformstart(form) %> + <% 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.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) %> -<% else %> -
+ <% htmlviewfunctions.displayformend(form) %> <% end %> diff --git a/app/form-html.lsp b/app/form-html.lsp index 26389b9..5d1b85d 100644 --- a/app/form-html.lsp +++ b/app/form-html.lsp @@ -2,7 +2,7 @@ require("htmlviewfunctions") %> -

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

+

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

<% htmlviewfunctions.displayform(form, nil, nil, page_info, 2) %> -- cgit v1.2.3