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 %}
|
{% regroup history.data by month.year as years_list %}
|
||||||
{% for y, year in years_list reversed %}
|
{% for y, year in years_list reversed %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ y }}</th>
|
<th>
|
||||||
|
<a href="{% url "transaction_year" y %}">{{ y }}</a>
|
||||||
|
</th>
|
||||||
{% for m in year %}
|
{% for m in year %}
|
||||||
{% if forloop.parentloop.last and forloop.first %}
|
{% if forloop.parentloop.last and forloop.first %}
|
||||||
{% empty_calendar_cells_start m.month.month %}
|
{% 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 %}
|
{% load i18n main_extras static category %}
|
||||||
{% block link %}
|
{% block link %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
{% css "main/css/plot.css" %}
|
{% css "main/css/plot.css" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block name %}{{ year|date:"Y" }}{% endblock %}
|
||||||
{% block h2 %}{{ year|date:"Y" }}{% endblock %}
|
{% block h2 %}{{ year|date:"Y" }}{% endblock %}
|
||||||
{% block table %}
|
{% block table %}
|
||||||
{% if history %}
|
{% if history %}
|
||||||
|
@ -18,6 +19,4 @@
|
||||||
<h3>{% translate "Categories" %}</h3>
|
<h3>{% translate "Categories" %}</h3>
|
||||||
{% category_plot transactions month=month %}
|
{% category_plot transactions month=month %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<h3>{% translate "Transactions" %}</h3>
|
|
||||||
{{ block.super }}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue