From ba0926900a03bac02163e4a7e42fb05fefd930cc Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 4 Dec 2021 22:59:12 +0000 Subject: [PATCH] Move account view below budget --- http/http.go | 2 +- web/accounts.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http/http.go b/http/http.go index 7866b8d..4b0c1c7 100644 --- a/http/http.go +++ b/http/http.go @@ -53,7 +53,7 @@ func (h *Handler) Serve() { withBudget.GET("/dashboard", h.dashboard) withBudget.GET("/budget/:budgetid", h.budget) withBudget.GET("/budget/:budgetid/accounts", h.accounts) - withBudget.GET("/account/:accountid", h.account) + withBudget.GET("/budget/:budgetid/account/:accountid", h.account) withBudget.GET("/admin", h.admin) withBudget.GET("/admin/clear-database", h.clearDatabase) } diff --git a/web/accounts.html b/web/accounts.html index 2ab7231..b80bf4b 100644 --- a/web/accounts.html +++ b/web/accounts.html @@ -10,7 +10,7 @@ {{define "main"}} {{range .Accounts}}
- {{.Name}} + {{.Name}} {{printf "%.2f" .Balance.GetFloat64}}
{{end}}