Improve sidebar template
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="sidebar">
|
||||
{{template "sidebar" .}}
|
||||
{{block "sidebar" .}}
|
||||
{{template "budget-sidebar" .}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="container" id="head">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{define "sidebar"}}
|
||||
{{define "budget-sidebar"}}
|
||||
<ul>
|
||||
<li>Budget (Coming Soon)</li>
|
||||
<li>Reports (Coming Soon)</li>
|
||||
@@ -8,7 +8,7 @@
|
||||
<ul class="two-valued">
|
||||
{{range .Accounts}}
|
||||
<li>
|
||||
<a href="/account/{{.ID}}">{{.Name}}</a>
|
||||
<a href="/budget/{{$.Budget.ID}}/account/{{.ID}}">{{.Name}}</a>
|
||||
<span class="right">{{printf "%.2f" .Balance.GetFloat64}}</span>
|
||||
</li>
|
||||
{{end}}
|
@@ -6,6 +6,10 @@
|
||||
{{template "budget-new"}}
|
||||
{{end}}
|
||||
|
||||
{{define "sidebar"}}
|
||||
Please select a budget.
|
||||
{{end}}
|
||||
|
||||
{{template "base" .}}
|
||||
|
||||
{{define "main"}}
|
||||
|
Reference in New Issue
Block a user