Fix amount thing.

This commit is contained in:
James Cole 2015-10-03 22:31:55 +02:00
parent 8321663815
commit 2c4920db2d

View File

@ -79,7 +79,7 @@
</div>
{% else %}
{% set amount = rep.amount %}
{% set pct = (amount != 0 ? spentInRep / amount)*100 : 0) %}
{% set pct = (amount != 0 ? ((spentInRep / amount)*100) : 0) %}
<div class="progress progress-striped">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ pct|round }}" aria-valuemin="0"
aria-valuemax="100" style="width: {{ pct|round }}%;"></div>