Force + on transaction value

This commit is contained in:
Edgar P. Burkhart 2022-05-21 19:17:44 +02:00
parent 8cd1427418
commit ee494e0a9d
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -23,7 +23,7 @@
<div class="transaction {% cycle 'w' 'g' %}">
<span class="date num center">{{ trans.date|date:"Y-m-d" }}</span>
<span class="name text"><a href="{% url 'transaction' trans.id %}">{{ trans.name }}</a></span>
<span class="value num">{{ trans.value|floatformat:"2g" }} €</span>
<span class="value num">{% if trans.value > 0 %}+{% endif %}{{ trans.value|floatformat:"2g" }} €</span>
<span class="trader text center">{{ trans.trader|default_if_none:"" }}</span>
<span class="category text center">
{% if trans.category %}