From 0e135f4fc7b475c9dff7e0a5b4c48ca38e8d08bc Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:51:04 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- samba-listfiles-html.lsp | 46 +++++++++++++++++++++++----------- samba-listshares-html.lsp | 64 +++++++++++++++++++++++++++++++---------------- 2 files changed, 74 insertions(+), 36 deletions(-) diff --git a/samba-listfiles-html.lsp b/samba-listfiles-html.lsp index b6460e8..48ffa17 100644 --- a/samba-listfiles-html.lsp +++ b/samba-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then @@ -10,20 +28,20 @@ html = require("acf.html") end %>

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

-
- - - - - - +
FileSizeLast Modified
+ + + + + + <% for i,file in ipairs(data.value) do %> - - + - - - + + + + <% end %> -
FileSizeLast Modified
+
<%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %> - <%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
<%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
+ diff --git a/samba-listshares-html.lsp b/samba-listshares-html.lsp index 46a1678..dca452a 100644 --- a/samba-listshares-html.lsp +++ b/samba-listshares-html.lsp @@ -3,43 +3,63 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editshare", "deleteshare"}, session) %> <% htmlviewfunctions.displaycommandresults({"createshare"}, session, true) %> -

Shares

-
- - - - - - - +

Shares

+
ActionNamePathComment
+ + + + + + + <% for i,share in ipairs(view.value) do %> - - + - - - - + + + + + <% end %> -
ActionNamePathComment
+
<% if viewlibrary.check_permission("editshare") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editshare?name="..share.name.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("deleteshare") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteshare?submit=true&name="..share.name, label="Delete "} %> <% end %> - <%= html.html_escape(share.name) %><%= html.html_escape(share.path) %><%= html.html_escape(share.comment) %>
<%= html.html_escape(share.name) %><%= html.html_escape(share.path) %><%= html.html_escape(share.comment) %>
+ <% if #view.value == 0 then %> -No Shares Found +

No Shares Found

<% end %> -
<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createshare") then %> -

Create new share

-
+

Create new share

+ -
+

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