blob: 9aa681ea5aa160b139bb7bc376bb8925c1420d0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 %>
|