From 2bd635102285c76c592290dd1fad8d2597aef3e7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:30:00 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- freeswitch-listfiles-html.lsp | 64 +++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 23 deletions(-) (limited to 'freeswitch-listfiles-html.lsp') diff --git a/freeswitch-listfiles-html.lsp b/freeswitch-listfiles-html.lsp index f4a8bcc..5b38091 100644 --- a/freeswitch-listfiles-html.lsp +++ b/freeswitch-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editfile", "deletefile", "reloadxml"}, session) %> <% htmlviewfunctions.displaycommandresults({"createfile"}, session, true) %> @@ -11,44 +29,44 @@ html = require("acf.html") end %>

Configuration

-
- - - - - - - +
ActionFileSizeLast Modified
+ + + + + + + <% for k,v in ipairs( view.value ) do %> - - + - - - - + + + + + <% end %> -
ActionFileSizeLast Modified
+
<% if viewlibrary.check_permission("editfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..v.filename.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("deletefile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletefile?submit=true&filename="..v.filename, label="Delete "} %> <% end %> - <%= html.html_escape(v.filename) %><%= html.html_escape(v.size) %><%= html.html_escape(v.mtime) %>
<%= html.html_escape(v.filename) %><%= html.html_escape(v.size) %><%= html.html_escape(v.mtime) %>
+ <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) %> -

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

+

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

<% createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createfile" htmlviewfunctions.displayform(createform) end %> <% if viewlibrary.check_permission("reloadxml") then %> -

Reload XML

-
-
Reload XML
-
-
-
+

Reload XML

+

Reload XML

+
+
+
+
<% end %> -- cgit v1.2.3