Add timeline graph to category page
This commit is contained in:
parent
bbcaf1c1d3
commit
d04fc756d4
2 changed files with 5 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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"),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue