From 1ffbd4f9f51bc3c483f6fe1fdfd10cfdee4916d3 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sun, 15 Dec 2024 01:42:02 -0300 Subject: [PATCH] fix(networth): missing title for each page type --- app/apps/net_worth/views.py | 2 ++ app/templates/net_worth/net_worth.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/apps/net_worth/views.py b/app/apps/net_worth/views.py index 0ac725c..96b5526 100644 --- a/app/apps/net_worth/views.py +++ b/app/apps/net_worth/views.py @@ -108,6 +108,7 @@ def net_worth_current(request): "currencies": currencies, "chart_data_accounts_json": chart_data_accounts_json, "accounts": accounts, + "type": "current", }, ) @@ -208,5 +209,6 @@ def net_worth_projected(request): "currencies": currencies, "chart_data_accounts_json": chart_data_accounts_json, "accounts": accounts, + "type": "projected", }, ) diff --git a/app/templates/net_worth/net_worth.html b/app/templates/net_worth/net_worth.html index 3d624b2..19630da 100644 --- a/app/templates/net_worth/net_worth.html +++ b/app/templates/net_worth/net_worth.html @@ -6,7 +6,7 @@ {% load static %} {% load webpack_loader %} -{% block title %}{% translate 'Net Worth' %}{% endblock %} +{% block title %}{% if type == "current" %}{% translate 'Current Net Worth' %}{% else %}{% translate 'Projected Net Worth' %}{% endif %}{% endblock %} {% block content %}