From df80810456f4a13d48eba24bfa1fa79b360c8426 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 2 Feb 2012 20:59:08 +0000 Subject: Changed viewfunctions.lua to htmlviewfunctions.lua and made it an actual module It should have been a module all along, but wasn't Unfortunately, this means changes to pretty much every view file --- app/filedetails-html.lsp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/filedetails-html.lsp') diff --git a/app/filedetails-html.lsp b/app/filedetails-html.lsp index 6b5a2f3..101861d 100644 --- a/app/filedetails-html.lsp +++ b/app/filedetails-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... %> -<% require("viewfunctions") %> +<% require("htmlviewfunctions") %> <% if form.type == "form" then %>

Configuration

@@ -10,16 +10,16 @@

File Details

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

File Content

<% if form.type == "form" then %> <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> -<% displayformstart(form) %> +<% htmlviewfunctions.displayformstart(form) %> <% else %>
@@ -31,7 +31,7 @@ displayitem(form.value.mtime) <% if form.value.filecontent.descr then %>

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

<% end %> <% if form.type == "form" then %> -<% displayformend(form) %> +<% htmlviewfunctions.displayformend(form) %> <% else %>
<% end %> -- cgit v1.2.3