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_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 %}

View file

@ -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"),
] ]