Make banned_until not null

This commit is contained in:
David Hoppenbrouwers
2022-10-09 15:47:42 +02:00
parent 8189d429c1
commit 7c55ab7bac
3 changed files with 4 additions and 7 deletions

View File

@@ -99,12 +99,12 @@
</form>
</td>
<td>
{% if banned_until is not none %}
{%- if banned_until > 0 -%}
<form method=post action="user/{{ id }}/unban/">
{{- format_time(banned_until) }}
<input type=submit value=Unban>
</form>
{% endif %}
{%- endif -%}
<form method=post action="user/{{ id }}/ban/">
<input type=number name=days placeholder=days>
<input type=time name=time>