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

57 lines
No EOL
1.9 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>
</header>
<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">
{% for service in services %}
<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 }}"/>
{% 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 }}
</section>
</a>
{% endfor %}
</section>
<section class="stats">
VPS STATS &mdash; {{ vps_stats|safe }}
</section>
</body>
</html>