From 810228c2ac928c1af071e3b2bda27cedf7b8b04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Wed, 21 Sep 2016 22:43:34 +0200 Subject: [PATCH] limit talk score to 1 decimal --- proposals/templates/proposals/talk_detail.html | 2 +- proposals/templates/proposals/talk_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proposals/templates/proposals/talk_detail.html b/proposals/templates/proposals/talk_detail.html index c80f3aa..0022ccb 100644 --- a/proposals/templates/proposals/talk_detail.html +++ b/proposals/templates/proposals/talk_detail.html @@ -61,7 +61,7 @@ +2

-{{ 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 }}

{% trans "Status:" %}

diff --git a/proposals/templates/proposals/talk_list.html b/proposals/templates/proposals/talk_list.html index 350f08e..e729977 100644 --- a/proposals/templates/proposals/talk_list.html +++ b/proposals/templates/proposals/talk_list.html @@ -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 %}