38 lines
658 B
Plaintext
38 lines
658 B
Plaintext
<!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>
|
|
<th>Action</th>
|
|
</tr>
|
|
|
|
<% checks.forEach(c => { %>
|
|
<tr>
|
|
<td>
|
|
<%= c.display_id || 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>
|
|
<td>
|
|
<form method="POST" action="/run/<%= c.id %>" style="margin:0;">
|
|
<button type="submit">Run-Test</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<% }) %>
|
|
|
|
</table>
|
|
</body>
|
|
</html>
|