forked from AFPy/PonyConf
limit talk score to 1 decimal
This commit is contained in:
parent
ba88c76b8a
commit
810228c2ac
|
@ -61,7 +61,7 @@
|
|||
<a class="btn {% if vote.vote == 2 %} active {% endif %}btn-success" href="{% url 'vote' talk=talk.slug score='2' %}">+2</a>
|
||||
</div>
|
||||
<br /><br />
|
||||
{{ talk.vote_set.all|length }} {% trans "vote" %}{{ talk.vote_set.all|length|pluralize }}, {% trans "average:" %} {{ talk.score }}
|
||||
{{ talk.vote_set.all|length }} {% trans "vote" %}{{ talk.vote_set.all|length|pluralize }}, {% trans "average:" %} {{ talk.score|floatformat:1 }}
|
||||
|
||||
<h3>{% trans "Status:" %}</h3>
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
{% elif talk.accepted == False %}
|
||||
{% trans "Declined" %}
|
||||
{% else %}
|
||||
{% blocktrans with score=talk.score %}Pending, score: {{ score }}{% endblocktrans %}
|
||||
{% blocktrans with score=talk.score|floatformat:1 %}Pending, score: {{ score }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue
Block a user