Revised the balance in the mobile view of the income and expenses.

This commit is contained in:
依瑪貓 2023-03-05 22:18:22 +08:00
parent e1d35a64da
commit ddd028736c

View File

@ -42,5 +42,9 @@ First written: 2023/3/5
{% if item.expense is not none %} {% if item.expense is not none %}
<span class="badge rounded-pill bg-warning">-{{ item.expense|accounting_format_amount }}</span> <span class="badge rounded-pill bg-warning">-{{ item.expense|accounting_format_amount }}</span>
{% endif %} {% endif %}
{% if item.balance < 0 %}
<span class="badge rounded-pill bg-danger">{{ item.balance|accounting_format_amount }}</span>
{% else %}
<span class="badge rounded-pill bg-primary">{{ item.balance|accounting_format_amount }}</span> <span class="badge rounded-pill bg-primary">{{ item.balance|accounting_format_amount }}</span>
{% endif %}
</div> </div>