This commit is contained in:
Kierre
2025-10-01 18:28:54 -04:00
commit 87499b859e
8 changed files with 216 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-gb" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ config['frontend']['name'] }}</title>
<link href="/style.css" rel="stylesheet" />
</head>
<body>
<h2>{{ config['frontend']['name'] }}</h2>
{% for service in services %}
<div class="service">
<p><b>{{ service }}</b></p>
<div class="status">
{% for ping in uptime[service] %}
{% if ping == "I" %}
<p class="green">█</p>
{% elif ping == "O" %}
<p class="red">█</p>
{% else %}
<p class="grey">█</p>
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
</body>
</html>