Use printf in template
This commit is contained in:
@ -19,7 +19,9 @@
|
||||
<td>
|
||||
<a href="transaction/{{.ID}}">{{.Memo}}</a>
|
||||
</td>
|
||||
<td style="text-align: right;{{if .GetPositive()}}{{else}}color: red;{{end}}">{{.GetAmount}}</td>
|
||||
<td style="text-align: right;{{if .GetPositive}}{{else}}color: red;{{end}}">
|
||||
{{printf "%.2f" .GetAmount}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user