From 0df57debb8d57f975eda541c756c098bcc4b4174 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Wed, 5 Jan 2022 17:51:40 -0800 Subject: [PATCH] fix(routers.trusted_user): only display Voters on ended proposals In addition, we display the Voters partial regardless of them existing or not; with no voters, an empty Voters list is displayed. Closes #236 Signed-off-by: Kevin Morris --- templates/tu/show.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/tu/show.html b/templates/tu/show.html index ff2d4bb6..c36a3e8f 100644 --- a/templates/tu/show.html +++ b/templates/tu/show.html @@ -5,7 +5,7 @@ {% include "partials/tu/proposal/details.html" %} - {% if voters %} + {% if utcnow >= voteinfo.End %}
{% include "partials/tu/proposal/voters.html" %}
@@ -18,5 +18,4 @@ {% include "partials/tu/proposal/form.html" %} {% endif %} - {% endblock %}