From 252093372c197c19547f7e310c7eb9620c8fe7a7 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Mon, 21 Jan 2019 04:46:41 +0100 Subject: [PATCH] Allow superuser to make hyperref'd motions --- virtualmeetings/templates/virtualmeetings/motion_content.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virtualmeetings/templates/virtualmeetings/motion_content.html b/virtualmeetings/templates/virtualmeetings/motion_content.html index dcc7acc48..b6556ad5c 100644 --- a/virtualmeetings/templates/virtualmeetings/motion_content.html +++ b/virtualmeetings/templates/virtualmeetings/motion_content.html @@ -3,7 +3,11 @@ <h3 class="pt-0 mb-2">put forward on {{ motion.date|date:"Y-m-d" }} by {{ motion.put_forward_by.user.first_name }} {{ motion.put_forward_by.user.last_name }}</h3> <h3>Background:</h3> + {% if motion.put_forward_by.user.is_superuser %} + <div>{{ motion.background|safe|linebreaks }}</div> + {% else %} <div>{{ motion.background|linebreaks }}</div> + {% endif %} <h3>Motion:</h3> <div>{{ motion.motion|linebreaks }}</div> -- GitLab