Move account view below budget
This commit is contained in:
parent
61fa6ed776
commit
ba0926900a
@ -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)
|
||||
}
|
||||
|
@ -10,7 +10,7 @@
|
||||
{{define "main"}}
|
||||
{{range .Accounts}}
|
||||
<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>
|
||||
</div>
|
||||
{{end}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user