Amounts better divided.

This commit is contained in:
James Cole 2016-04-06 20:59:09 +02:00
parent 30e3ed6410
commit 25d3a115e0
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -151,12 +151,12 @@
<!-- green (100-pct), then red (pct) --> <!-- green (100-pct), then red (pct) -->
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-success" style="width: {{ 100 - account.percentage }}%"> <div class="progress-bar progress-bar-success" style="width: {{ 100 - account.percentage }}%">
{% if account.percentage <= 50 %} {% if account.percentage >= 20 %}
{{ account.difference|formatAmountPlain }} {{ account.difference|formatAmountPlain }}
{% endif %} {% endif %}
</div> </div>
<div class="progress-bar progress-bar-danger" style="width: {{ account.percentage }}%"> <div class="progress-bar progress-bar-danger" style="width: {{ account.percentage }}%">
{% if account.percentage > 50 %} {% if account.percentage < 20 %}
{{ account.difference|formatAmountPlain }} {{ account.difference|formatAmountPlain }}
{% endif %} {% endif %}
</div> </div>
@ -165,13 +165,12 @@
<!-- green (pct), then blue (100-pct) --> <!-- green (pct), then blue (100-pct) -->
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-success" style="width: {{ account.percentage }}%"> <div class="progress-bar progress-bar-success" style="width: {{ account.percentage }}%">
{% if account.percentage <= 50 %} {% if account.percentage >= 20 %}
{{ account.difference|formatAmountPlain }}
{{ account.difference|formatAmountPlain }} {{ account.difference|formatAmountPlain }}
{% endif %} {% endif %}
</div> </div>
<div class="progress-bar progress-bar-info" style="width: {{ 100 - account.percentage }}%"> <div class="progress-bar progress-bar-info" style="width: {{ 100 - account.percentage }}%">
{% if account.percentage > 50 %} {% if account.percentage < 20 %}
{{ account.difference|formatAmountPlain }} {{ account.difference|formatAmountPlain }}
{% endif %} {% endif %}
</div> </div>
@ -218,12 +217,12 @@
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-info progress-bar" style="width: {{ 100 - account.percentage }}%"> <div class="progress-bar progress-bar-info progress-bar" style="width: {{ 100 - account.percentage }}%">
{% if account.percentage <= 50 %} {% if account.percentage >= 20 %}
{{ account.piggyBalance|formatAmountPlain }} {{ 'divided'|_ }} {{ account.piggyBalance|formatAmountPlain }} {{ 'divided'|_ }}
{% endif %} {% endif %}
</div> </div>
<div class="progress-bar progress-bar-success progress-bar" style="width: {{ account.percentage }}%"> <div class="progress-bar progress-bar-success progress-bar" style="width: {{ account.percentage }}%">
{% if account.percentage > 50 %} {% if account.percentage < 20 %}
{{ account.difference|formatAmountPlain }} {{ 'toDivide'|_ }} {{ account.difference|formatAmountPlain }} {{ 'toDivide'|_ }}
{% endif %} {% endif %}
</div> </div>