{{define "content"}} {{$d := .}}
| Month | {{range $cat, $_ := $d.CategoryNames}}{{$color := index $d.CategoryColors $cat}} {{if $color}}{{end}}{{$cat}} | {{end}}Total |
|---|---|---|
| {{$row.Month}} | {{range $cat, $_ := $d.CategoryNames}}{{$v := index $row.Totals $cat}} {{if $v}}€{{cents $v}}{{else}}—{{end}} | {{end}} {{$total := sub 0 0}} {{range $_, $v := $row.Totals}}{{$total = add $total $v}}{{end}}€{{cents $total}} |