From 0d87bb5527f504012fa877a988f1a3e7591ba584 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:43:24 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- openssh-listauth-html.lsp | 52 +++++++++++++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 17 deletions(-) (limited to 'openssh-listauth-html.lsp') diff --git a/openssh-listauth-html.lsp b/openssh-listauth-html.lsp index de89648..8d8ebad 100644 --- a/openssh-listauth-html.lsp +++ b/openssh-listauth-html.lsp @@ -2,31 +2,49 @@ <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"deleteauth"}, session) %> <% htmlviewfunctions.displaycommandresults({"addauth"}, session, true) %> -

Authorized Keys for <%= html.html_escape(view.value.user.value) %>

-
- - - - - +

Authorized Keys for <%= html.html_escape(view.value.user.value) %>

+
ActionIDKey
+ + + + + + <% for i,auth in ipairs(view.value.auth.value) do %> - - + - - - + + + + <% end %> -
ActionIDKey
-
" method="POST"> +
+" method="post"> - + - <%= html.html_escape(auth.id) %><% if #auth.key>32 then io.write(html.html_escape(string.sub(auth.key,0,16)) .. " ... " .. html.html_escape(string.sub(auth.key, -16))) else io.write(html.html_escape(auth.key)) end %>
<%= html.html_escape(auth.id) %><% if #auth.key>32 then io.write(html.html_escape(string.sub(auth.key,0,16)) .. " ... " .. html.html_escape(string.sub(auth.key, -16))) else io.write(html.html_escape(auth.key)) end %>
+

In order to preserve keys with lbu, you must add /<% if view.value.user.value ~= "root" then io.write("home/") end %><%= view.value.user.value %>/.ssh/authorized_keys to lbu include -

<% viewlibrary.dispatch_component("addauth", {user=view.value.user.value}) %> -- cgit v1.2.3