Extract amount template

This commit is contained in:
jacob1123 committed 2021-12-07 14:49:58 +00:00
1 parent 4a0759af8f
commit 6f4bff929e
6 files changed
+20 -13

No files matched your search

+2 -6
View File
@@ -28,12 +28,8 @@
</td>
<td>
</td>
<td style="text-align: right;{{if .Balance.GetPositive}}{{else}}color: red;{{end}}">
{{printf "%.2f" .Balance.GetFloat64}}
</td>
<td style="text-align: right;{{if .Activity.GetPositive}}{{else}}color: red;{{end}}">
{{printf "%.2f" .Activity.GetFloat64}}
</td>
{{template "amount-cell" .Balance}}
{{template "amount-cell" .Activity}}
</tr>
{{end}}
</table>