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_buttons category %}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<img src="{% url "plot-category" category.id %}" alt="Graph representing value over time" />
|
||||||
|
|
||||||
{% if transactions %}
|
{% if transactions %}
|
||||||
<h2>{% translate "Transactions" %}</h2>
|
<h2>{% translate "Transactions" %}</h2>
|
||||||
{% transaction_table transactions %}
|
{% transaction_table transactions %}
|
||||||
|
|
|
@ -3,7 +3,7 @@ from django.urls import path
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("timeline", views.timeline, name="timeline"),
|
path("timeline", views.timeline, name="plot-timeline"),
|
||||||
path("categories", views.categories, name="categories"),
|
path("categories", views.categories, name="plot-categories"),
|
||||||
path("category/<uuid>", views.category, name="category"),
|
path("category/<uuid>", views.category, name="plot-category"),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue