summaryrefslogtreecommitdiffstats
path: root/weblog-viewusagestats-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'weblog-viewusagestats-html.lsp')
-rw-r--r--weblog-viewusagestats-html.lsp42
1 files changed, 20 insertions, 22 deletions
diff --git a/weblog-viewusagestats-html.lsp b/weblog-viewusagestats-html.lsp
index 6d27669..7bea2f9 100644
--- a/weblog-viewusagestats-html.lsp
+++ b/weblog-viewusagestats-html.lsp
@@ -16,35 +16,34 @@
<script type="text/javascript">
$(function(){
- $("#usage").tablesorter({headers: {0:{sorter: false}, 1:{sorter: 'text'}, 2:{sorter: 'digit'}, 3:{sorter: 'digit'}}, widgets: ['zebra']});
+ $("#usage").tablesorter({headers: {0:{sorter: 'shortDate'}, 1:{sorter: 'text'}, 2:{sorter: 'digit'}, 3:{sorter: 'digit'}}, widgets: ['zebra']});
});
</script>
<% local subdata, pagedata = htmlviewfunctions.paginate(data.value, page_info.clientdata, 100) %>
-<H1><%= html.html_escape(data.label) %></H1>
-<DL>
+<h1><%= html.html_escape(data.label) %></h1>
<% htmlviewfunctions.displaypagination(pagedata, page_info) %>
-<TABLE id="usage" class="tablesorter">
-<THEAD>
- <TR>
- <TH>Date</TH>
- <TH>Source</TH>
- <TH>Requests</TH>
- <TH>Blocks</TH>
- </TR>
-</THEAD>
-<TBODY>
+<table id="usage" class="tablesorter">
+<thead>
+ <tr>
+ <th>Date</th>
+ <th>Source</th>
+ <th>Requests</th>
+ <th>Blocks</th>
+ </tr>
+</thead>
+<tbody>
<% for i,stat in ipairs(subdata) do %>
- <TR>
- <TD><%= html.html_escape(stat.date) %></TD>
- <TD><%= html.html_escape(stat.sourcename) %></TD>
- <TD><%= html.html_escape(stat.numrequest) %></TD>
- <TD><%= html.html_escape(stat.numblock) %></TD>
- </TR>
+ <tr>
+ <td><%= html.html_escape(stat.date) %></td>
+ <td><%= html.html_escape(stat.sourcename) %></td>
+ <td><%= html.html_escape(stat.numrequest) %></td>
+ <td><%= html.html_escape(stat.numblock) %></td>
+ </tr>
<% end %>
-</TBODY>
-</TABLE>
+</tbody>
+</table>
<% if data.errtxt then %>
<p class='error'><%= html.html_escape(data.errtxt) %></p>
@@ -52,4 +51,3 @@
<% if #data.value == 0 then %>
<p>No usage stats found</p>
<% end %>
-</DL>