From e01891d364956856ca3167806e0a0cdb6861bbd1 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Tue, 9 Apr 2019 21:32:40 +0200 Subject: [PATCH] Add read-only support for poll/Question --- templates/utils.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/utils.html b/templates/utils.html index 3f54f3d..bd5ca6e 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -56,6 +56,13 @@ {% if obj | has_type('Article') %} {{ obj.name }} {{ obj | url_or_id | get_url }} + {% elif obj | has_type('Question') %} + {{ obj.content | clean | safe }} + {% else %} {{ obj.content | clean | safe }} {% endif %}