Update year view (add link)

This commit is contained in:
Edgar P. Burkhart 2024-01-02 11:52:04 +01:00
parent 3dbc31eebc
commit 75df57f42a
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 5 additions and 4 deletions

View file

@ -52,7 +52,9 @@
{% regroup history.data by month.year as years_list %}
{% for y, year in years_list reversed %}
<tr>
<th>{{ y }}</th>
<th>
<a href="{% url "transaction_year" y %}">{{ y }}</a>
</th>
{% for m in year %}
{% if forloop.parentloop.last and forloop.first %}
{% empty_calendar_cells_start m.month.month %}

View file

@ -1,9 +1,10 @@
{% extends "transaction/transaction_list.html" %}
{% extends "main/list.html" %}
{% load i18n main_extras static category %}
{% block link %}
{{ block.super }}
{% css "main/css/plot.css" %}
{% endblock %}
{% block name %}{{ year|date:"Y" }}{% endblock %}
{% block h2 %}{{ year|date:"Y" }}{% endblock %}
{% block table %}
{% if history %}
@ -18,6 +19,4 @@
<h3>{% translate "Categories" %}</h3>
{% category_plot transactions month=month %}
{% endif %}
<h3>{% translate "Transactions" %}</h3>
{{ block.super }}
{% endblock %}