Add links to category in month category plot

This commit is contained in:
Edgar P. Burkhart 2023-04-22 15:52:32 +02:00
parent b828324220
commit f7564eb282
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 7 additions and 1 deletions

View File

@ -21,7 +21,13 @@
{% for cat in categories.data %}
<tr>
<th scope="row" class="l">
{% if cat.category %}{{ cat.category__name }}{% endif %}
{% if cat.category %}
{% if month %}
<a href="{% url "transaction_month" cat.category month.year month.month %}">{{ cat.category__name }}</a>
{% else %}
{{ cat.category__name }}
{% endif %}
{% endif %}
</th>
<td class="c">
{% if cat.category %}{{ cat.category__icon|remix }}{% endif %}