Extract amount template
This commit is contained in:
11
web/amount.tpl
Normal file
11
web/amount.tpl
Normal file
@ -0,0 +1,11 @@
|
||||
{{define "amount"}}
|
||||
<span class="right {{if .GetPositive}}{{else}}negative{{end}}">
|
||||
{{printf "%.2f" .GetFloat64}}
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
{{define "amount-cell"}}
|
||||
<td class="right {{if .GetPositive}}{{else}}negative{{end}}">
|
||||
{{printf "%.2f" .GetFloat64}}
|
||||
</td>
|
||||
{{end}}
|
Reference in New Issue
Block a user