diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 19:29:47 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 19:29:47 +0000 |
commit | 58dcae2ff22fc58b75296518a8f6da174375ada9 (patch) | |
tree | dd3e6459036f3dfd3912ec0fd7503d1473bacf2e /logfiles-status-html.lsp | |
parent | 4f44e5c5e066f9ac287151e5b1f0fa515367d613 (diff) | |
download | acf-alpine-baselayout-58dcae2ff22fc58b75296518a8f6da174375ada9.tar.bz2 acf-alpine-baselayout-58dcae2ff22fc58b75296518a8f6da174375ada9.tar.xz |
Change logfiles.status to return a structure rather than a list of cfe's for each file
This makes it like listfiles actions in other ACFs. Tested and still works with acf-weblog.
Diffstat (limited to 'logfiles-status-html.lsp')
-rw-r--r-- | logfiles-status-html.lsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/logfiles-status-html.lsp b/logfiles-status-html.lsp index 688d975..bf80391 100644 --- a/logfiles-status-html.lsp +++ b/logfiles-status-html.lsp @@ -43,11 +43,11 @@ </thead><tbody> <% local viewtype = cfe({type="hidden", value="stream"}) %> <% for i,file in ipairs(view.value) do %> - <% local filename = cfe({type="hidden", value=file.value.filename.value}) %> + <% local filename = cfe({type="hidden", value=file.filename}) %> <tr> <% if viewlibrary.check_permission("delete") then %> <td> - <% if file.value.inuse.value then %> + <% if file.inuse then %> in use <% else htmlviewfunctions.displayitem(cfe({type="form", value={filename=filename}, label="", option="Delete", action="delete" }), page_info, -1) @@ -57,9 +57,9 @@ <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename}, label="", option="View", action="view" }), page_info, -1) %></td> <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename}, label="", option="Tail", action="tail" }), page_info, -1) %></td> <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, viewtype=viewtype}, label="", option="Download", action="download" }), page_info, -1) %></td> - <td><span class="hide"><%= html.html_escape(file.value.size.value) %>b</span><%= format.formatfilesize(file.value.size.value) %></td> - <td><%= format.formattime(file.value.mtime.value) %></td> - <td><%= html.html_escape(file.value.filename.value) %></td> + <td><span class="hide"><%= html.html_escape(file.size) %>b</span><%= format.formatfilesize(file.size) %></td> + <td><%= format.formattime(file.mtime) %></td> + <td><%= html.html_escape(file.filename) %></td> </tr> <% end %> </tbody></table> |