From 6f3e73c18db22a88e4ab224dbbe351d7ce1a20df Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Apr 2014 20:54:53 +0000 Subject: Replace form with displayitem in listshares-html --- samba-listshares-html.lsp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'samba-listshares-html.lsp') diff --git a/samba-listshares-html.lsp b/samba-listshares-html.lsp index 41833e8..e3fc36c 100644 --- a/samba-listshares-html.lsp +++ b/samba-listshares-html.lsp @@ -56,15 +56,7 @@ html = require("acf.html")

No Shares Found

<% end %> -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createshare") then %> -<% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Create new share"}), page_info, htmlviewfunctions.incrementheader(header_level)) %> -
- -

-
- -
-
-<% htmlviewfunctions.displaysectionend(header_level2) %> +<% if viewlibrary and viewlibrary.check_permission("createshare") then %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={redir=redir}, label="Create new share", option="Create Share", action="createshare"}), page_info, htmlviewfunctions.incrementheader(header_level)) %> <% end %> <% htmlviewfunctions.displaysectionend(header_level) %> -- cgit v1.2.3