diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-04-12 04:08:02 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-04-12 04:08:02 +0000 |
commit | eb046ff591c5abe9f2cd1f493ab8756d0abf61cf (patch) | |
tree | 4ab164ef446c989131b087d9db258b409b150402 /openssh-listusers-html.lsp | |
parent | 0d87bb5527f504012fa877a988f1a3e7591ba584 (diff) | |
download | acf-openssh-eb046ff591c5abe9f2cd1f493ab8756d0abf61cf.tar.bz2 acf-openssh-eb046ff591c5abe9f2cd1f493ab8756d0abf61cf.tar.xz |
Changes to use new htmlviewfunctions functions and change connectedpeers to return cfe
Diffstat (limited to 'openssh-listusers-html.lsp')
-rw-r--r-- | openssh-listusers-html.lsp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/openssh-listusers-html.lsp b/openssh-listusers-html.lsp index 69c80e0..ea6da7c 100644 --- a/openssh-listusers-html.lsp +++ b/openssh-listusers-html.lsp @@ -1,10 +1,13 @@ <% local view, viewlibrary, page_info, session = ... %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -<h1>System User Accounts</h1> +<% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="System User Accounts"}), page_info) %> <% for i,user in ipairs(view.value) do %> - <div class='item'><div class='left'><img src='<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/apps/system-users.png' height='16' width='16'> <%= html.html_escape(user) %></div> - <div class='right'> - <a href='listauth?user=<%= html.html_escape(user) %>'>Edit this account</a> - </div></div><!-- end .item --> + <% htmlviewfunctions.displayitemstart() %> + <img src='<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/apps/system-users.png' height='16' width='16'> <%= html.html_escape(user) %> + <% htmlviewfunctions.displayitemmiddle() %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={user=cfe({type="hidden", value=user})}, label="", option="Edit", action="listauth"}), page_info, -1) %> + <% htmlviewfunctions.displayitemend() %> <% end %> +<% htmlviewfunctions.displaysectionend(header_level) %> |