2021-12-30 23:20:05 +01:00
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
<div class="LP-Voting">
|
|
|
|
<div class="LP-Voting__Left">
|
|
|
|
<h2 class="LP-Headline">
|
|
|
|
Place level
|
|
|
|
</h2>
|
|
|
|
<div class="LP-Voting__Choices">
|
2021-12-31 15:56:31 +01:00
|
|
|
{% for choice in voting.all_choices %}
|
2021-12-30 23:20:05 +01:00
|
|
|
<a href="{% url 'place_vote' place_id=place.id vote=choice.0 %}" class="LP-Voting__Vote {% if choice.0 <= place.level %} LP-Voting__Vote--overall{% endif %}" title="Vote place as "{{choice.1}}"">
|
|
|
|
<i class="mdi mdi-shield-home"></i>
|
|
|
|
<span class="LP-Voting__Label">
|
|
|
|
{{choice.1}}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<div class="LP-Voting__CurrentVote">
|
|
|
|
{{place.get_level_display}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-31 15:56:31 +01:00
|
|
|
{% if voting.users_vote %}
|
|
|
|
<div class="LP-Voting__Right">
|
|
|
|
<div class="LP-Voting__Info">
|
|
|
|
<div class="LP-Voting__UserVote">
|
|
|
|
<span class="LP-Voting__InfoLabel">You voted this place as</span>
|
|
|
|
<span class="LP-Voting__Vote">{{voting.users_vote.get_human_readable_level}} <i>Level {{voting.users_vote.vote}}</i></span>
|
|
|
|
</div>
|
2021-12-30 23:20:05 +01:00
|
|
|
|
2021-12-31 15:56:31 +01:00
|
|
|
<div class="LP-Voting__Expiration">
|
2022-09-20 09:56:23 +02:00
|
|
|
The accuracy of the voting is {{voting.accuracy}}%
|
2021-12-31 15:56:31 +01:00
|
|
|
</div>
|
2021-12-30 23:20:05 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-31 15:56:31 +01:00
|
|
|
{% endif %}
|
2021-12-30 23:20:05 +01:00
|
|
|
</div>
|