Add timeline graph to category page

This commit is contained in:
Edgar P. Burkhart 2022-12-20 16:20:44 +01:00
parent bbcaf1c1d3
commit d04fc756d4
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
2 changed files with 5 additions and 3 deletions

View File

@ -18,6 +18,8 @@
{% form_buttons category %}
</form>
<img src="{% url "plot-category" category.id %}" alt="Graph representing value over time" />
{% if transactions %}
<h2>{% translate "Transactions" %}</h2>
{% transaction_table transactions %}

View File

@ -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/<uuid>", views.category, name="category"),
path("timeline", views.timeline, name="plot-timeline"),
path("categories", views.categories, name="plot-categories"),
path("category/<uuid>", views.category, name="plot-category"),
]