restructure for docker

This commit is contained in:
Ville Rantanen
2023-07-24 20:02:45 +03:00
parent 79780f0769
commit 58abf04d2c
45 changed files with 152 additions and 17 deletions

View File

@@ -0,0 +1,21 @@
{% extends 'base.html' %}
{%- block content %}
{%- if user is not none and user.is_moderator() -%}
<p>
<form method=post action="{{ url_for('moderator_ban_user', user_id = id) }}">
<input type=number name=days placeholder=days>
<input type=time name=time>
<input type=submit value=Ban>
</form>
{%- if banned_until > 0 -%}
<form method=post action="{{ url_for('moderator_unban_user', user_id = id) }}">
{{- format_time(banned_until) -}}
<input type=submit value=Unban>
</form>
{%- endif -%}
</p>
{%- endif -%}
<p><sup><i>{{ name }}</i></sup></p>
<p>{{ minimd(about) | safe }}<p>
{%- endblock %}