Display zero values in grey

This commit is contained in:
2021-12-07 20:35:49 +00:00
parent 8c9c78a789
commit 5f4c5d9d51
3 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,11 @@
{{define "amount"}}
<span class="right {{if .GetPositive}}{{else}}negative{{end}}">
<span class="right {{if .IsZero}}zero{{else if not .GetPositive}}negative{{end}}">
{{printf "%.2f" .GetFloat64}}
</span>
{{end}}
{{define "amount-cell"}}
<td class="right {{if .GetPositive}}{{else}}negative{{end}}">
<td class="right {{if .IsZero}}zero{{else if not .GetPositive}}negative{{end}}">
{{printf "%.2f" .GetFloat64}}
</td>
{{end}}