sdbs-infra/sdbs_infra/dashboard/templates/index.html

57 lines
1.9 KiB
HTML
Raw Normal View History

2020-06-14 12:08:11 +02:00
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>/-\ infra status page</title>
2020-06-14 14:36:16 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-06-14 12:08:11 +02:00
<link rel="stylesheet" href="{% static "main.css" %}">
</head>
<body>
<header>
<h1>/-\ infrastructure</h1>
</header>
2020-06-20 19:32:10 +02:00
<h2>important links</h2>
<section class="links boxes">
{% for link in links %}
<a class="link box" href="{{ link.url }}">
<section class="box-content">
{% if link.image_url %}
<img src="{{ link.image_url }}" alt="image for {{ link.short_name }}"/>
{% endif %}
<div class="label">
<h3>{{ link.short_name }}</h3>
{% if link.description %}
<p class="description">{{ link.description }}</p>
{% endif %}
</div>
</section>
</a>
{% endfor %}
</section>
<h2>internal&nbsp;services</h2>
<section class="services boxes">
2020-06-14 12:08:11 +02:00
{% for service in services %}
2020-06-20 19:32:10 +02:00
<a class="service box status-{{ service.status }}" href="{{ service.url }}">
<section class="box-content">
{% if service.image_url %}
<img src="{{ service.image_url }}" alt="image for {{ service.short_name }}"/>
2020-06-14 12:08:11 +02:00
{% 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.status }}
2020-06-14 12:08:11 +02:00
</section>
</a>
{% endfor %}
2020-06-20 19:32:10 +02:00
</section>
2020-06-15 12:20:01 +02:00
<section class="stats">
2020-06-14 19:51:35 +02:00
VPS STATS &mdash; {{ vps_stats|safe }}
2020-06-15 12:20:01 +02:00
</section>
2020-06-14 12:08:11 +02:00
</body>
</html>