limit talk score to 1 decimal

This commit is contained in:
Élie Bouttier 2016-09-21 22:43:34 +02:00
parent ba88c76b8a
commit 810228c2ac
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>