From 830171b38af53da92c18afef5da195258a58b298 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sat, 18 Apr 2026 22:04:01 +1000 Subject: [PATCH] UI update --- invest/services.py | 10 +++++----- invest/templates/invest/dashboard.html | 4 ++-- invest/templates/invest/portfolio_detail.html | 4 ++-- invest/templates/invest/transactions.html | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/invest/services.py b/invest/services.py index cab514a..24778bd 100644 --- a/invest/services.py +++ b/invest/services.py @@ -169,11 +169,11 @@ def get_all_holdings() -> list[dict]: """ # Assign a distinct Tailwind color set per portfolio (cycled if more than defined) palette = [ - {'badge': 'bg-indigo-100 text-indigo-800', 'row': 'bg-indigo-50/40', 'border': 'border-indigo-200'}, - {'badge': 'bg-emerald-100 text-emerald-800', 'row': 'bg-emerald-50/40', 'border': 'border-emerald-200'}, - {'badge': 'bg-amber-100 text-amber-800', 'row': 'bg-amber-50/40', 'border': 'border-amber-200'}, - {'badge': 'bg-rose-100 text-rose-800', 'row': 'bg-rose-50/40', 'border': 'border-rose-200'}, - {'badge': 'bg-sky-100 text-sky-800', 'row': 'bg-sky-50/40', 'border': 'border-sky-200'}, + {'badge': 'bg-indigo-100 text-indigo-800', 'row': 'bg-indigo-50', 'border': 'border-indigo-200'}, + {'badge': 'bg-emerald-100 text-emerald-800', 'row': 'bg-emerald-50', 'border': 'border-emerald-200'}, + {'badge': 'bg-amber-100 text-amber-800', 'row': 'bg-amber-50', 'border': 'border-amber-200'}, + {'badge': 'bg-rose-100 text-rose-800', 'row': 'bg-rose-50', 'border': 'border-rose-200'}, + {'badge': 'bg-sky-100 text-sky-800', 'row': 'bg-sky-50', 'border': 'border-sky-200'}, ] result = [] diff --git a/invest/templates/invest/dashboard.html b/invest/templates/invest/dashboard.html index 21cc41d..bc39c21 100644 --- a/invest/templates/invest/dashboard.html +++ b/invest/templates/invest/dashboard.html @@ -1,5 +1,5 @@ -{% extends "invest/base.html" %} -{% load static %} +{% extends "base.html" %} +{% load static i18n %} {% block title %}Dashboard{% endblock %} diff --git a/invest/templates/invest/portfolio_detail.html b/invest/templates/invest/portfolio_detail.html index 35e6578..325c3e9 100644 --- a/invest/templates/invest/portfolio_detail.html +++ b/invest/templates/invest/portfolio_detail.html @@ -1,5 +1,5 @@ -{% extends "invest/base.html" %} -{% load static %} +{% extends "base.html" %} +{% load static i18n %} {% block title %}{{ portfolio.name }} - Portfolio{% endblock %} diff --git a/invest/templates/invest/transactions.html b/invest/templates/invest/transactions.html index 8fa8b79..575d592 100644 --- a/invest/templates/invest/transactions.html +++ b/invest/templates/invest/transactions.html @@ -1,5 +1,5 @@ -{% extends "invest/base.html" %} -{% load static %} +{% extends "base.html" %} +{% load static i18n %} {% block title %}{{ portfolio.name }} - Transactions{% endblock %}