diff --git a/nummi/category/templates/category/category_plot.html b/nummi/category/templates/category/category_plot.html
index ca855a0..63577af 100644
--- a/nummi/category/templates/category/category_plot.html
+++ b/nummi/category/templates/category/category_plot.html
@@ -24,6 +24,8 @@
{% if cat.category %}
{% if month %}
{{ cat.category__name }}
+ {% elif year %}
+ {{ cat.category__name }}
{% else %}
{{ cat.category__name }}
{% endif %}
diff --git a/nummi/category/urls.py b/nummi/category/urls.py
index 5bdc9c1..64b8ae9 100644
--- a/nummi/category/urls.py
+++ b/nummi/category/urls.py
@@ -1,5 +1,5 @@
from django.urls import path
-from transaction.views import TransactionMonthView
+from transaction.views import TransactionMonthView, TransactionYearView
from . import views
@@ -12,6 +12,11 @@ urlpatterns = [
name="category_transactions",
),
path("/delete", views.CategoryDeleteView.as_view(), name="del_category"),
+ path(
+ "/history/",
+ TransactionYearView.as_view(),
+ name="category_transaction_year",
+ ),
path(
"/history//",
TransactionMonthView.as_view(),
diff --git a/nummi/transaction/templates/transaction/transaction_archive_year.html b/nummi/transaction/templates/transaction/transaction_archive_year.html
index 671f13c..e602fc7 100644
--- a/nummi/transaction/templates/transaction/transaction_archive_year.html
+++ b/nummi/transaction/templates/transaction/transaction_archive_year.html
@@ -17,6 +17,6 @@
{% endif %}
{% if not category %}
{% translate "Categories" %}
- {% category_plot transactions month=month %}
+ {% category_plot transactions year=year %}
{% endif %}
{% endblock %}