Convert templates to partials

This commit is contained in:
2021-12-02 15:00:53 +00:00
parent 67f7022b90
commit 77ae9d2dfd
16 changed files with 261 additions and 237 deletions

View File

@@ -1,23 +1,17 @@
{{define "accounts"}}
<!DOCTYPE html>
<html>
<head>
<title>Budgets</title>
{{define "title"}}
Accounts
{{end}}
{{template "head"}}
</head>
<body>
<div class="container" id="head">
Budgeteer - {{.Token.GetName}}
</div>
<div class="container col-lg-12" id="content">
{{range .Accounts}}
<div class="budget-item">
<a href="account/{{.ID}}">{{.Name}}</a>
<span class="time"></span>
</div>
{{end}}
</div>
</body>
</html>
{{define "new"}}
{{end}}
{{template "base" .}}
{{define "main"}}
{{range .Accounts}}
<div class="budget-item">
<a href="account/{{.ID}}">{{.Name}}</a>
<span class="time"></span>
</div>
{{end}}
{{end}}