From 8732babf50f6ef3765b619892bdf0fe3670d411b Mon Sep 17 00:00:00 2001 From: Evert Date: Fri, 2 Mar 2018 16:36:01 +0200 Subject: [PATCH] Final discussion boards fixes --- Discussions/templates/board.html | 13 +++++++++++-- Discussions/views.py | 3 +-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Discussions/templates/board.html b/Discussions/templates/board.html index bf032e5..482b61f 100644 --- a/Discussions/templates/board.html +++ b/Discussions/templates/board.html @@ -53,14 +53,15 @@
{{reply.body|markdown|safe}}
{% if user.is_authenticated %} - {% if "can_moderate_board" in show_perms or board.user == user %} + {% if "can_moderate_board" in show_perms %} Delete Content Ban - {% else %} + {% elif not user == reply.user %} {% endif %} {% endif %}
+ {% if not board.locked %}
{% csrf_token %}
+ {% else %} + +  {{reply.positives}} + + +  {{reply.negatives}} + + {% endif %}
diff --git a/Discussions/views.py b/Discussions/views.py index 32fb37f..367f9ab 100644 --- a/Discussions/views.py +++ b/Discussions/views.py @@ -140,8 +140,7 @@ def BoardForm(req, abbr): # Request context ctx = { 'form': form, - 'show': show, - 'showurl': get_show_url(abbr) + 'show': show } # Get bans for this user regarding this show