Fix transaction table with no account

This commit is contained in:
Edgar P. Burkhart 2025-01-02 09:37:47 +01:00
parent 79f87779dd
commit 8575f43475
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -62,17 +62,17 @@
{% if trans.value < 0 %}<td></td>{% endif %}
<td>{{ trans.trader|default_if_none:"" }}</td>
{% if not category %}
{% if trans.category %}
<td>
<td>
{% if trans.category %}
<a href="{{ trans.category.get_absolute_url }}">{{ trans.category.icon|remix }}{{ trans.category }}</a>
</td>
{% else %}
<td></td>
{% endif %}
{% endif %}
</td>
{% endif %}
{% if not account %}
<td>
<a href="{{ trans.account.get_absolute_url }}">{{ trans.account.icon|remix }}{{ trans.account }}</a>
{% if trans.account %}
<a href="{{ trans.account.get_absolute_url }}">{{ trans.account.icon|remix }}{{ trans.account|default_if_none:"" }}</a>
{% endif %}
</td>
{% endif %}
</tr>