tildes-statistics/source/templates/index.html

55 lines
1.2 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block head %}
<link rel="stylesheet" href="/css/index.css">
{% endblock %}
{% block body %}
<header class="page-header">
2022-10-09 11:37:37 +00:00
<img src="/tildes-statistics.png" alt="Tildes Statistics Logo">
<h1>Tildes Statistics</h1>
</header>
<main class="page-main">
<h2>General</h2>
<p>
2022-10-08 19:47:30 +00:00
There are currently an estimated
<span class="underline">{{ user_count }}</span>
registered users on Tildes.
</p>
2023-06-07 17:09:44 +00:00
<img class="chart" src="/charts/main-user-count.svg" alt="User Count Chart">
2022-10-08 20:11:52 +00:00
2023-06-07 19:06:17 +00:00
<details open>
<summary>Groups Overview</summary>
<table>
<thead>
<tr>
<th>Group</th>
<th>Subscribers</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for group in groups %}
<tr>
<td>
<a href="{{ base_url }}/{{ group.name }}">{{ group.name }}</a>
</td>
<td>{{ group.subscribers }}</td>
<td>
{% if let Some(description) = group.description %}
{{ description }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</details>
</main>
{% endblock %}