Merge branch 'tu_vote_decision' into 'master'

Allow Trusted Users to change their proposal decisions

See merge request archlinux/aurweb!477
This commit is contained in:
Kevin Morris 2022-03-08 08:03:28 +00:00
commit b49aa79c2c
9 changed files with 254 additions and 83 deletions

View file

@ -2,7 +2,11 @@
{% if voteinfo.is_running() %}
<p class="vote-running" style="font-weight: bold; color: red">
{% trans %}This vote is still running.{% endtrans %}
{% trans %}This vote is still running.{% endtrans %}<br />
{% if vote %}
{{ "You've already voted for this proposal." | tr }}
{{ "You can change your vote while the proposal is still running." | tr }}
{% endif %}
</p>
{% endif %}
@ -39,6 +43,13 @@
</strong>
</div>
{% if vote and vote.Decision %}
<div class="field">
{{ "Your vote" | tr }}:
<strong>{{ vote.display() }}</strong>
</div>
{% endif %}
{% if not voteinfo.is_running() %}
<div class="field result">
{{ "Result" | tr }}: