From 75df57f42a62cd4cad477e447218f27e37292506 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 2 Jan 2024 11:52:04 +0100 Subject: [PATCH] Update year view (add link) --- nummi/history/templates/history/plot.html | 4 +++- .../templates/transaction/transaction_archive_year.html | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nummi/history/templates/history/plot.html b/nummi/history/templates/history/plot.html index 49a52f2..f8d041c 100644 --- a/nummi/history/templates/history/plot.html +++ b/nummi/history/templates/history/plot.html @@ -52,7 +52,9 @@ {% regroup history.data by month.year as years_list %} {% for y, year in years_list reversed %} - {{ y }} + + {{ y }} + {% for m in year %} {% if forloop.parentloop.last and forloop.first %} {% empty_calendar_cells_start m.month.month %} diff --git a/nummi/transaction/templates/transaction/transaction_archive_year.html b/nummi/transaction/templates/transaction/transaction_archive_year.html index 2f0cf71..671f13c 100644 --- a/nummi/transaction/templates/transaction/transaction_archive_year.html +++ b/nummi/transaction/templates/transaction/transaction_archive_year.html @@ -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 @@

{% translate "Categories" %}

{% category_plot transactions month=month %} {% endif %} -

{% translate "Transactions" %}

- {{ block.super }} {% endblock %}