Skip to content

Commit 67ff6ef

Browse files
committed
refactor: update donation titles for clarity in dashboards
1 parent 7bc4b4a commit 67ff6ef

6 files changed

Lines changed: 245 additions & 186 deletions

File tree

backend/donations/views/dashboard/admin_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _get_header_stats() -> list[list[dict[str, str | int | datetime]]]:
6161
return [
6262
[
6363
{
64-
"title": _("Donations this year"),
64+
"title": f"{_('Donations')} {_('this year')}",
6565
"icon": "edit_document",
6666
"metric": current_year_redirections(),
6767
"footer": format_stat_link(

backend/donations/views/dashboard/ngo_dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def _get_donations_per_county(user_ngo):
7575
rows = [[index + 1] + row for index, row in enumerate(rows)]
7676

7777
return {
78-
"title": _("Current year donations per county"),
78+
"title": f"{_('Donations')} {_('per county')} {_('this year')}",
7979
"data": {
8080
"headers": headers,
8181
"rows": rows,

0 commit comments

Comments
 (0)