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

View file

@ -21,7 +21,13 @@
{% for cat in categories.data %} {% for cat in categories.data %}
<tr> <tr>
<th scope="row" class="l"> <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> </th>
<td class="c"> <td class="c">
{% if cat.category %}{{ cat.category__icon|remix }}{% endif %} {% if cat.category %}{{ cat.category__icon|remix }}{% endif %}