Use database as apps source and add deployments UI

This commit is contained in:
AppFactory Bot
2026-05-28 10:14:22 +02:00
parent db039e5988
commit 915ee48131
2 changed files with 161 additions and 0 deletions
+102
View File
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html>
<head>
<title>Deployments</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 30px;
background: #f5f5f5;
}
h1 {
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
background: white;
}
th, td {
padding: 12px;
border-bottom: 1px solid #ddd;
text-align: left;
}
th {
background: #222;
color: white;
}
tr:hover {
background: #f0f0f0;
}
.success {
color: green;
font-weight: bold;
}
.failed {
color: red;
font-weight: bold;
}
.running {
color: orange;
font-weight: bold;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
<h1>Deployments</h1>
<table>
<thead>
<tr>
<th>ID</th>
<th>App</th>
<th>Kind</th>
<th>Status</th>
<th>Started</th>
<th>Finished</th>
<th>Return Code</th>
</tr>
</thead>
<tbody>
{% for deploy in deployments %}
<tr>
<td>
<a href="/portal/deployments/{{ deploy.id }}">
#{{ deploy.id }}
</a>
</td>
<td>{{ deploy.app_id }}</td>
<td>{{ deploy.kind }}</td>
<td class="{{ deploy.status }}">
{{ deploy.status }}
</td>
<td>{{ deploy.started_at }}</td>
<td>{{ deploy.finished_at or '-' }}</td>
<td>{{ deploy.returncode or '-' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>