forked from devs/PCv5
Merge pull request 'post: unique delete button for guest posts' (#140) from IniKiwi/PCv5:guest-delete-button-2 into dev
Reviewed-on: https://gitea.planet-casio.com/devs/PCv5/pulls/140
This commit is contained in:
commit
d6ff6eb77f
|
@ -32,7 +32,7 @@
|
|||
<a href="{{ url_for('move_post', postid=post.id) }}">Déplacer</a>
|
||||
{% endif %}
|
||||
|
||||
{% if can_punish %}
|
||||
{% if can_punish and post.author.type == "member"%}
|
||||
<a href="{{ url_for('delete_post', postid=post.id, penalty=False, csrf_token=csrf_token()) }}" onclick="return confirm('Le post sera supprimé.')">Supprimer{{ suffix }} (normal)</a>
|
||||
<a href="{{ url_for('delete_post', postid=post.id, penalty=True, csrf_token=csrf_token()) }}" onclick="return confirm('Le post sera supprimé avec pénalité d\'XP.')">Supprimer{{ suffix }} (pénalité)</a>
|
||||
{% elif can_delete %}
|
||||
|
|
Loading…
Reference in New Issue