Add links to category in month category plot
This commit is contained in:
parent
b828324220
commit
f7564eb282
1 changed files with 7 additions and 1 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue