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 %} {% if trans.value < 0 %}<td></td>{% endif %}
<td>{{ trans.trader|default_if_none:"" }}</td> <td>{{ trans.trader|default_if_none:"" }}</td>
{% if not category %} {% 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> <a href="{{ trans.category.get_absolute_url }}">{{ trans.category.icon|remix }}{{ trans.category }}</a>
</td> {% endif %}
{% else %} </td>
<td></td>
{% endif %}
{% endif %} {% endif %}
{% if not account %} {% if not account %}
<td> <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> </td>
{% endif %} {% endif %}
</tr> </tr>