summaryrefslogtreecommitdiffstats
path: root/weblog-viewactivitylog-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'weblog-viewactivitylog-html.lsp')
-rw-r--r--weblog-viewactivitylog-html.lsp22
1 files changed, 22 insertions, 0 deletions
diff --git a/weblog-viewactivitylog-html.lsp b/weblog-viewactivitylog-html.lsp
new file mode 100644
index 0000000..9aa681e
--- /dev/null
+++ b/weblog-viewactivitylog-html.lsp
@@ -0,0 +1,22 @@
+<% local data, viewlibrary, page_info, session = ... %>
+<H1><%= html.html_escape(data.label) %></H1>
+<TABLE>
+ <TR style="background:#eee;font-weight:bold;">
+ <TD style="padding-right:20px;white-space:nowrap;" class="header">Date</TD>
+ <TD style="white-space:nowrap;" WIDTH="90%" class="header">Message</TD>
+ </TR>
+
+<% for i,log in ipairs(data.value) do %>
+ <TR>
+ <TD><%= html.html_escape(log.logdatetime) %></TD>
+ <TD><%= html.html_escape(log.msgtext) %></TD>
+ </TR>
+<% end %>
+</TABLE>
+
+<% if data.errtxt then %>
+<p class='error'><%= html.html_escape(data.errtxt) %></p>
+<% end %>
+<% if #data.value == 0 then %>
+<p>No history found</p>
+<% end %>