From b3c9642adce2c528d69dbd2b316c2b19c60166d7 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Wed, 3 Jan 2024 15:20:45 +0100 Subject: [PATCH] Update year history (remove year in plot lines) --- nummi/history/templates/history/plot.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/nummi/history/templates/history/plot.html b/nummi/history/templates/history/plot.html index 8501506..680686d 100644 --- a/nummi/history/templates/history/plot.html +++ b/nummi/history/templates/history/plot.html @@ -25,7 +25,13 @@ {% if date.sum_m or date.sum_p %} {% up_down_icon date.sum %} - {% month_url date.month %} + + {% if year %} + {% month_url date.month fmt="F" %} + {% else %} + {% month_url date.month %} + {% endif %} + {{ date.sum_m|pmrvalue }} {% plot_bar date.sum date.sum_m history.max.pm %} {% plot_bar date.sum date.sum_p history.max.pm %} @@ -45,7 +51,9 @@ - + {% if not year %} + + {% endif %} {% calendar_head %} @@ -53,7 +61,9 @@ {% regroup history.data by month.year as years_list %} {% for y, year in years_list reversed %} - + {% if not year %} + + {% endif %} {% for m in year %} {% if forloop.parentloop.last and forloop.first %} {% empty_calendar_cells_start m.month.month %}
{% translate "Year" %}{% translate "Year" %}
{% year_url y %}{% year_url y %}