Prevent internationalization of numbers used for style parameters.

This commit is contained in:
Christopher C. Wells 2019-04-16 19:30:50 -07:00
parent 06bff89ca8
commit 9114a2d911
1 changed files with 2 additions and 2 deletions

View File

@ -15,13 +15,13 @@
{% if info.wet_pct > 0 %} {% if info.wet_pct > 0 %}
<div class="progress-bar bg-primary lead" <div class="progress-bar bg-primary lead"
role="progressbar" role="progressbar"
style="width: {{ info.wet_pct }}%;">{{ info.wet|floatformat:'0' }}&nbsp;{% trans "wet" %}</div> style="width: {{ info.wet_pct|safe }}%;">{{ info.wet|floatformat:'0' }}&nbsp;{% trans "wet" %}</div>
{% endif %} {% endif %}
{% if info.solid_pct > 0 %} {% if info.solid_pct > 0 %}
<div class="progress-bar bg-secondary lead" <div class="progress-bar bg-secondary lead"
role="progressbar" role="progressbar"
style="width: {{ info.solid_pct }}%;"> style="width: {{ info.solid_pct|safe }}%;">
{{ info.solid|floatformat:'0' }}&nbsp;{% trans "solid" %}</div> {{ info.solid|floatformat:'0' }}&nbsp;{% trans "solid" %}</div>
{% endif %} {% endif %}
</div> </div>