Browse Source

fix: Limit user monthly emissions decimal places

loi_agec
Jean-Romain Garnier 4 years ago
committed by jr-garnier
parent
commit
59d18bc2d7
  1. 2
      footprint/templates/footprint/aff_profil.html

2
footprint/templates/footprint/aff_profil.html

@ -42,7 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% elif monthly_emissions is None %} {% elif monthly_emissions is None %}
<td>{% trans "Unavailable" %}</td> <td>{% trans "Unavailable" %}</td>
{% else %} {% else %}
<td>{{ monthly_emissions }} {% trans "kgCO₂e/month" %}</td> <td>{{ monthly_emissions|floatformat:2 }} {% trans "kgCO₂e/month" %}</td>
{% endif %} {% 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> <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>

Loading…
Cancel
Save