From d04fc756d4fd27e5b2bd98c27a81387469b0de63 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 20 Dec 2022 16:20:44 +0100 Subject: [PATCH] Add timeline graph to category page --- nummi/main/templates/main/category.html | 2 ++ nummi/plot/urls.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/nummi/main/templates/main/category.html b/nummi/main/templates/main/category.html index e6f4fef..0e54c24 100644 --- a/nummi/main/templates/main/category.html +++ b/nummi/main/templates/main/category.html @@ -18,6 +18,8 @@ {% form_buttons category %} +Graph representing value over time + {% if transactions %}

{% translate "Transactions" %}

{% transaction_table transactions %} diff --git a/nummi/plot/urls.py b/nummi/plot/urls.py index 9a07e4e..1412ba8 100644 --- a/nummi/plot/urls.py +++ b/nummi/plot/urls.py @@ -3,7 +3,7 @@ from django.urls import path from . import views urlpatterns = [ - path("timeline", views.timeline, name="timeline"), - path("categories", views.categories, name="categories"), - path("category/", views.category, name="category"), + path("timeline", views.timeline, name="plot-timeline"), + path("categories", views.categories, name="plot-categories"), + path("category/", views.category, name="plot-category"), ]