Fix #1538 (Floating point numbers showing 2 decimals on details page

pull/1551/head
Ozzie Isaacs 4 years ago
parent 42a0639bb5
commit 1a1d105fae

@ -182,9 +182,13 @@
{% else %}
<span class="glyphicon glyphicon-remove"></span>
{% endif %}
{% else %}
{% if c.datatype == 'float' %}
{{ '%d' % (column.value) }}{% if (column.value % 1) != 0 %}{{ '.%d' % ((column.value % 1)*100) }} {% endif %}
{% else %}
{{ column.value }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}

Loading…
Cancel
Save