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 <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-01-05 17:51:40 -08:00
parent ae7621fb54
commit 0df57debb8
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -5,7 +5,7 @@
{% include "partials/tu/proposal/details.html" %}
</div>
{% if voters %}
{% if utcnow >= voteinfo.End %}
<div class="box">
{% include "partials/tu/proposal/voters.html" %}
</div>
@ -18,5 +18,4 @@
{% include "partials/tu/proposal/form.html" %}
{% endif %}
</div>
{% endblock %}