Update year view (add link)
This commit is contained in:
parent
3dbc31eebc
commit
75df57f42a
2 changed files with 5 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue