Files
runnerspace/templates/layouts/index.html
Xevion 2e8688f59b Revamp all form submissions with Flask-WTF forms
- Rename blueprint route 'main.user' to 'main.view_user' for clarity
- Rename 'forms.py' to 'route_forms.py'
2022-03-29 02:00:43 -05:00

35 lines
1.2 KiB
HTML

{% extends 'layouts/base.html' %}
{% block content %}
<div style="display: flex;">
<div class="new-users" style="margin: 2em;">
<h2>New Users</h2>
<div>
<ul>
{% for new_user in new_users %}
<li><a href="{{ url_for('main.view_user', username=new_user.username) }}">{{ new_user.username }}</a> as
of {{ new_user.get_registration_delta() }} ago
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="statistics" style="margin: 1em;">
<h2>runnerspace Statistics</h2>
<div>
<div>
<ul>
<li>
<strong>{{ stats['total_comments'] }}</strong> comments across <strong>{{ stats['total_posts'] }}</strong> posts<br>
</li>
<li>
<strong>{{ stats['total_users'] }}</strong> users
</li>
</ul>
</div>
</div>
</div>
</div>
{% endblock %}