-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay_logs.ejs
39 lines (39 loc) · 1.34 KB
/
display_logs.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><%- logFile %></title>
<style>
body {
font: 13px "Helvetica Neue", "Lucida Grande", "Arial";
background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9));
background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9);
background-repeat: no-repeat;
color: #555;
-webkit-font-smoothing: antialiased;
}
p {
border-bottom: 1px dashed #efefef;
margin: 0;
padding-block-start: 1em;
padding-block-end: 1em;
padding-inline-start: 5px;
padding-inline-end: 5px;
}
p:hover {
background-color: #EBE8E8;
}
</style>
</head>
<body>
<% for(var i = 0; i < logs.length; i++) {
var log = logs[i];%>
<p>
<% for(var j = 0; j < log.length; j++) {
var message = log[j];%>
<span style="<%= message.style ? message.style : "" %>"><%= message.label ? message.label : message %></span>
<% } %>
</p>
<% } %>
</body>
</html>