Move account view below budget

This commit is contained in:
Jan Bader 2021-12-04 22:59:12 +00:00
parent 61fa6ed776
commit ba0926900a
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func (h *Handler) Serve() {
withBudget.GET("/dashboard", h.dashboard) withBudget.GET("/dashboard", h.dashboard)
withBudget.GET("/budget/:budgetid", h.budget) withBudget.GET("/budget/:budgetid", h.budget)
withBudget.GET("/budget/:budgetid/accounts", h.accounts) 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", h.admin)
withBudget.GET("/admin/clear-database", h.clearDatabase) withBudget.GET("/admin/clear-database", h.clearDatabase)
} }

View File

@ -10,7 +10,7 @@
{{define "main"}} {{define "main"}}
{{range .Accounts}} {{range .Accounts}}
<div class="budget-item"> <div class="budget-item">
<a href="/account/{{.ID}}">{{.Name}}</a> <a href="/budget/:budgetid/account/{{.ID}}">{{.Name}}</a>
<span class="time">{{printf "%.2f" .Balance.GetFloat64}}</span> <span class="time">{{printf "%.2f" .Balance.GetFloat64}}</span>
</div> </div>
{{end}} {{end}}