first commit
This commit is contained in:
30
app/views/index.ejs
Normal file
30
app/views/index.ejs
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Docker Info Dashboard</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>System Status</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Last Run</th>
|
||||
</tr>
|
||||
|
||||
<% checks.forEach(c => { %>
|
||||
<tr>
|
||||
<td><%= c.id %></td>
|
||||
<td><%= c.name %></td>
|
||||
<td class="<%= c.last_status === 'OK' ? 'ok' : 'fail' %>">
|
||||
<%= c.last_status || 'N/A' %>
|
||||
</td>
|
||||
<td><%= c.last_run || 'N/A' %></td>
|
||||
</tr>
|
||||
<% }) %>
|
||||
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user