From d246843be0efdc5489ce6f7c74551097834a013e Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Sun, 5 Jan 2025 11:47:40 +0100 Subject: [PATCH] Enhance category plot template with improved URL handling for transactions based on year, month, statement, and account --- nummi/category/templates/category/category_plot.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nummi/category/templates/category/category_plot.html b/nummi/category/templates/category/category_plot.html index 2829d1a..760fcf0 100644 --- a/nummi/category/templates/category/category_plot.html +++ b/nummi/category/templates/category/category_plot.html @@ -21,8 +21,14 @@ {% if cat.category %} - {% if year or month %} - {{ cat.category__icon|remix }}{{ cat.category__name }} + {% if year %} + {{ cat.category__icon|remix }}{{ cat.category__name }} + {% elif month %} + {{ cat.category__icon|remix }}{{ cat.category__name }} + {% elif statement %} + {{ cat.category_.icon|remix }}{{ cat.category__name }} + {% elif account %} + {{ cat.category__icon|remix }}{{ cat.category__name }} {% else %} {{ cat.category__icon|remix }}{{ cat.category__name }} {% endif %}