Move the footer to the base template.

This commit is contained in:
Bauke 2023-06-07 21:06:17 +02:00
parent 1a081ff83f
commit 0410fd3603
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 48 additions and 43 deletions

View File

@ -15,6 +15,26 @@
<body> <body>
{% block body %}{% endblock %} {% block body %}{% endblock %}
<footer class="page-footer">
<p>
Last generated on
<time class="underline" datetime="{{ today }}">{{- today -}}</time>.
</p>
<p>
&copy; Code
<a href="https://git.bauke.xyz/Bauke/tildes-statistics">AGPL-3.0-or-later</a>,
charts & data
<a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>.
</p>
<p class="bold">
Consider joining <a href="{{ base_url }}">Tildes</a>, a non-profit
community site driven by its users' interests.
</p>
</footer>
{{ extra_body_html|safe }} {{ extra_body_html|safe }}
</body> </body>

View File

@ -21,49 +21,34 @@
<img class="chart" src="/charts/main-user-count.svg" alt="User Count Chart"> <img class="chart" src="/charts/main-user-count.svg" alt="User Count Chart">
<table> <details open>
<thead> <summary>Groups Overview</summary>
<tr>
<th>Group</th>
<th>Subscribers</th>
<th>Description</th>
</tr>
</thead>
<tbody> <table>
{% for group in groups %} <thead>
<tr> <tr>
<td> <th>Group</th>
<a href="{{ base_url }}/{{ group.name }}">{{ group.name }}</a> <th>Subscribers</th>
</td> <th>Description</th>
<td>{{ group.subscribers }}</td> </tr>
<td> </thead>
{% if let Some(description) = group.description %}
{{ description }} <tbody>
{% endif %} {% for group in groups %}
</td> <tr>
</tr> <td>
{% endfor %} <a href="{{ base_url }}/{{ group.name }}">{{ group.name }}</a>
</tbody> </td>
</table> <td>{{ group.subscribers }}</td>
<td>
{% if let Some(description) = group.description %}
{{ description }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</details>
</main> </main>
<footer class="page-footer">
<p>
Last generated on
<time class="underline" datetime="{{ today }}">{{- today -}}</time>.
</p>
<p>
&copy; Code
<a href="https://git.bauke.xyz/Bauke/tildes-statistics">AGPL-3.0-or-later</a>,
charts & data
<a href="https://creativecommons.org/licenses/by-nc/4.0/">CC BY-NC 4.0</a>.
</p>
<p class="bold">
Consider joining <a href="{{ base_url }}">Tildes</a>, a non-profit
community site driven by its users' interests.
</p>
</footer>
{% endblock %} {% endblock %}