summaryrefslogtreecommitdiffstats
path: root/did-viewactivitylog-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'did-viewactivitylog-html.lsp')
-rw-r--r--did-viewactivitylog-html.lsp24
1 files changed, 24 insertions, 0 deletions
diff --git a/did-viewactivitylog-html.lsp b/did-viewactivitylog-html.lsp
new file mode 100644
index 0000000..f5ab305
--- /dev/null
+++ b/did-viewactivitylog-html.lsp
@@ -0,0 +1,24 @@
+<% 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="padding-right:20px;white-space:nowrap;" class="header">Message</TD>
+ <TD style="white-space:nowrap;" WIDTH="90%" class="header">UserID</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>
+ <TD><%= html.html_escape(log.userid) %></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 %>