sdbs-infra/sdbs_infra/dashboard/templates/index.html
2020-06-14 14:45:00 +02:00

36 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&nbsp;page (internal&nbsp;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>
</body>
</html>