aurweb/templates/tu/show.html
Kevin Morris 0df57debb8
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>
2022-01-05 17:51:57 -08:00

21 lines
539 B
HTML

{% extends "partials/layout.html" %}
{% block pageContent %}
<div class="box">
{% include "partials/tu/proposal/details.html" %}
</div>
{% if utcnow >= voteinfo.End %}
<div class="box">
{% include "partials/tu/proposal/voters.html" %}
</div>
{% endif %}
<div class="box">
{% if error %}
<span class="status">{{ error | tr }}</span>
{% else %}
{% include "partials/tu/proposal/form.html" %}
{% endif %}
</div>
{% endblock %}