summaryrefslogtreecommitdiffstats
path: root/openssh-connectedpeers-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-02-03 21:43:24 +0000
committerTed Trask <ttrask01@yahoo.com>2014-02-03 21:43:24 +0000
commit0d87bb5527f504012fa877a988f1a3e7591ba584 (patch)
tree0b90f56204933342c243f8fffc8b90824702dbe8 /openssh-connectedpeers-html.lsp
parent32833592fb47f66ceb99848bef2ba132e3a3686c (diff)
downloadacf-openssh-0d87bb5527f504012fa877a988f1a3e7591ba584.tar.bz2
acf-openssh-0d87bb5527f504012fa877a988f1a3e7591ba584.tar.xz
Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags
Diffstat (limited to 'openssh-connectedpeers-html.lsp')
-rw-r--r--openssh-connectedpeers-html.lsp54
1 files changed, 27 insertions, 27 deletions
diff --git a/openssh-connectedpeers-html.lsp b/openssh-connectedpeers-html.lsp
index aa8b1fa..9740e72 100644
--- a/openssh-connectedpeers-html.lsp
+++ b/openssh-connectedpeers-html.lsp
@@ -2,47 +2,47 @@
html = require("acf.html")
%>
-<H1>Connected peers</H1>
+<h1>Connected peers</h1>
<%
if #data == 0 then
- io.write("No peers found\n")
+ io.write("<p>No peers found</p>\n")
end
local col1="180px"
for k,v in pairs(data) do
- io.write("<H3>" .. html.html_escape(v.host))
+ io.write("<h3>" .. html.html_escape(v.host))
if v.name and v.name ~= v.host then io.write(" - "..html.html_escape(v.name)) end
- io.write("</H3>\n")
- io.write("<DL><TABLE>")
+ io.write("</h3>\n")
+ io.write("<table>")
for i=1, v.cnt do
- io.write("<TR>")
+ io.write("<tr>")
if (v.tty[i]) then
- io.write("<TD WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='".. html.html_escape(page_info.wwwprefix..page_info.staticdir) .. "/tango/16x16/apps/utilities-terminal.png' HEIGHT='16' WIDTH='16'></TD>")
- io.write("<TD STYLE='padding-bottom:10px'>\n")
- io.write("<TABLE>")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>".. html.html_escape(v.tty[i].user) .. "</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>".. html.html_escape(v.tty[i].tty) .. "</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>".. html.html_escape(v.tty[i].time) .. "</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>".. html.html_escape(v.tty[i].idle) .. "</TD></TR>\n")
+ io.write("<td width='20px' style='padding-left:20px;vertical-align:top;'><img src='".. html.html_escape(page_info.wwwprefix..page_info.staticdir) .. "/tango/16x16/apps/utilities-terminal.png' height='16' width='16'></td>")
+ io.write("<td style='padding-bottom:10px'>\n")
+ io.write("<table>")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session user:</td><td>".. html.html_escape(v.tty[i].user) .. "</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session TTY:</td><td>".. html.html_escape(v.tty[i].tty) .. "</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session Started:</td><td>".. html.html_escape(v.tty[i].time) .. "</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session Idle:</td><td>".. html.html_escape(v.tty[i].idle) .. "</td></tr>\n")
- io.write("</TABLE>")
- io.write("</TD>\n")
+ io.write("</table>")
+ io.write("</td>\n")
else
- io.write("<TD WIDTH='20px' STYLE='padding-left:20px;vertical-align:top;'><IMG SRC='".. html.html_escape(page_info.wwwprefix..page_info.staticdir) .. "/tango/16x16/emblems/emblem-unreadable.png' HEIGHT='16' WIDTH='16'></TD>")
- io.write("<TD STYLE='padding-bottom:10px'>\n")
- io.write("<TABLE>")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session user:</TD><TD>No records</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session TTY:</TD><TD>No records</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Started:</TD><TD>No records</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Session Idle:</TD><TD>No records</TD></TR>\n")
- io.write("<TR><TD WIDTH='"..col1.."' STYLE='font-weight:bold;'>Other:</TD><TD>This could be a sshfs session</TD></TR>\n")
+ io.write("<td width='20px' style='padding-left:20px;vertical-align:top;'><img src='".. html.html_escape(page_info.wwwprefix..page_info.staticdir) .. "/tango/16x16/emblems/emblem-unreadable.png' height='16' width='16'></td>")
+ io.write("<td style='padding-bottom:10px'>\n")
+ io.write("<table>")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session user:</td><td>No records</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session TTY:</td><td>No records</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session Started:</td><td>No records</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Session Idle:</td><td>No records</td></tr>\n")
+ io.write("<tr><td width='"..col1.."' style='font-weight:bold;'>Other:</td><td>This could be a sshfs session</td></tr>\n")
- io.write("</TABLE>")
- io.write("</TD>\n")
+ io.write("</table>")
+ io.write("</td>\n")
end
- io.write("</TR>")
+ io.write("</tr>")
end
- io.write("</TABLE></DL>")
+ io.write("</table>")
end
%>