Commit 8b46e0e7 authored by Ted Trask's avatar Ted Trask

Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags

parent e795d333
...@@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") ...@@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html") html = require("acf.html")
%> %>
<script type="text/javascript">
if (typeof jQuery == 'undefined') {
document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>');
}
</script>
<script type="text/javascript">
if (typeof $.tablesorter == 'undefined') {
document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery.tablesorter.js"><\/script>');
}
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#list").tablesorter({widgets: ['zebra']});
});
</script>
<% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% htmlviewfunctions.displaycommandresults({"expert"}, session) %>
<% if viewlibrary and viewlibrary.dispatch_component then <% if viewlibrary and viewlibrary.dispatch_component then
...@@ -10,19 +28,18 @@ html = require("acf.html") ...@@ -10,19 +28,18 @@ html = require("acf.html")
end %> end %>
<h1><%= html.html_escape(data.label) %></h1> <h1><%= html.html_escape(data.label) %></h1>
<DL><TABLE> <table id="list" class="tablesorter"><thead>
<TR style="background:#eee;font-weight:bold;"> <tr>
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">File</TD> <th>File</th>
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Size</TD> <th>Size</th>
<TD style="white-space:nowrap;text-align:left;" class="header">Last Modified</TD> <th>Last Modified</th>
</TR> </tr>
</thead><tbody>
<% for i,file in ipairs(data.value) do %> <% for i,file in ipairs(data.value) do %>
<TR> <tr>
<TD style="padding-right:20px;white-space:nowrap;"><%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %></TD> <td><%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %></td>
<TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(file.filesize) %></TD> <td><%= html.html_escape(file.filesize) %></td>
<TD style="white-space:nowrap;" width="90%"><%= html.html_escape(file.mtime) %></TD> <td><%= html.html_escape(file.mtime) %></td>
</TR> </tr>
<% end %> <% end %>
</TABLE></DL> </tbody></table>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment