diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-10 10:26:45 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-10 10:26:45 +0000 |
commit | 38ba860a608ea477c7f38ee8d8ec5ce079e92991 (patch) | |
tree | c752e08624e3170d61fe45d45485e4c3cb844805 | |
parent | e26f18b8a777a41bfe67c39b460b85a55df45e3d (diff) | |
download | acf-lighttpd-38ba860a608ea477c7f38ee8d8ec5ce079e92991.tar.bz2 acf-lighttpd-38ba860a608ea477c7f38ee8d8ec5ce079e92991.tar.xz |
Changes to use new htmlviewfunctions functions
-rw-r--r-- | lighttpd-listfiles-html.lsp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lighttpd-listfiles-html.lsp b/lighttpd-listfiles-html.lsp index 41849e2..2292409 100644 --- a/lighttpd-listfiles-html.lsp +++ b/lighttpd-listfiles-html.lsp @@ -31,7 +31,7 @@ end <script type="text/javascript"> $(document).ready(function() { - $("#list").tablesorter({widgets: ['zebra']}); + $("#list").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra']}); }); </script> @@ -41,19 +41,25 @@ end viewlibrary.dispatch_component("status") end %> -<h1><%= html.html_escape(data.label) %></h1> +<% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> <table id="list" class="tablesorter"><thead> <tr> + <th>Action</th> <th>File</th> <th>Size</th> <th>Last Modified</th> </tr> </thead><tbody> +<% local filename = cfe({ type="hidden", value="" }) %> +<% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> <% for i,file in ipairs(data.value) do %> + <% filename.value = file.filename %> <tr> - <td><%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %></td> + <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="expert"}), page_info, -1) %></td> + <td><%= html.html_escape(file.filename) %></td> <td><span style="display:none"><%= convertsize(file.filesize) %>b</span><%= html.html_escape(file.filesize) %></td> <td><%= html.html_escape(file.mtime) %></td> </tr> <% end %> </tbody></table> +<% htmlviewfunctions.displaysectionend(header_level) %> |