39 lines
No EOL
1.2 KiB
HTML
39 lines
No EOL
1.2 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>/-\ infra status page</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="{% static "main.css" %}">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>/-\ infrastructure</h1>
|
|
<h2>status page (internal services)</h2>
|
|
</header>
|
|
<main>
|
|
{% for service in services %}
|
|
<a class="service status-{{ service.get_status.value }}" href="{{ service.url }}">
|
|
<section class="service-content">
|
|
{% if service.image_or_favicon %}
|
|
<img src="{{ service.image_or_favicon }}" alt="image for {{ service }}"/>
|
|
{% endif %}
|
|
<div class="label">
|
|
<h3>{{ service.short_name }}</h3>
|
|
{% if service.description %}
|
|
<p class="description">{{ service.description }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
<section class="service-status">
|
|
STATUS: {{ service.get_status.value }}
|
|
</section>
|
|
</a>
|
|
{% endfor %}
|
|
</main>
|
|
<footer>
|
|
VPS STATS — {{ vps_stats|safe }}
|
|
</footer>
|
|
</body>
|
|
</html> |