Extract amount template
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user