fix(networth): missing title for each page type

This commit is contained in:
Herculino Trotta
2024-12-15 01:42:02 -03:00
parent 06aa674492
commit 1ffbd4f9f5
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -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 %}
<div class="container px-md-3 py-3 column-gap-5">