Implement single account transaction-list
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
{{define "main"}}
|
||||
{{range .Accounts}}
|
||||
<div class="budget-item">
|
||||
<a href="account/{{.ID}}">{{.Name}}</a>
|
||||
<span class="time">{{printf "%.2f" .GetBalance}}</span>
|
||||
<a href="/account/{{.ID}}">{{.Name}}</a>
|
||||
<span class="time">{{printf "%.2f" .Balance.GetFloat64}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
@@ -25,8 +25,8 @@
|
||||
<td>
|
||||
<a href="transaction/{{.ID}}">{{.Memo}}</a>
|
||||
</td>
|
||||
<td style="text-align: right;{{if .GetPositive}}{{else}}color: red;{{end}}">
|
||||
{{printf "%.2f" .GetAmount}}
|
||||
<td style="text-align: right;{{if .Amount.GetPositive}}{{else}}color: red;{{end}}">
|
||||
{{printf "%.2f" .Amount.GetFloat64}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user