8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-05-19 09:02:35 +00:00

fix: Limit user monthly emissions decimal places

This commit is contained in:
Jean-Romain Garnier 2022-01-09 18:29:23 +01:00 committed by jr-garnier
parent a789640bec
commit 59d18bc2d7

View file

@ -42,7 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% elif monthly_emissions is None %}
<td>{% trans "Unavailable" %}</td>
{% else %}
<td>{{ monthly_emissions }} {% trans "kgCO₂e/month" %}</td>
<td>{{ monthly_emissions|floatformat:2 }} {% trans "kgCO₂e/month" %}</td>
{% endif %}
<td><a target="_blank" rel="noreferrer noopener" href="https://www.ademe.fr/expertises/consommer-autrement/passer-a-laction/reconnaitre-produit-plus-respectueux-lenvironnement/dossier/laffichage-environnemental/affichage-environnemental-secteur-numerique">{% trans "[Learn more]" %}</a></td>