23 lines
682 B
Smarty
23 lines
682 B
Smarty
{{define "amount"}}
|
|
<span class="right {{if .IsZero}}zero{{else if not .IsPositive}}negative{{end}}">
|
|
{{printf "%.2f" .GetFloat64}}
|
|
</span>
|
|
{{end}}
|
|
|
|
{{define "amount-cell"}}
|
|
<td class="right {{if .IsZero}}zero{{else if not .IsPositive}}negative{{end}}">
|
|
{{printf "%.2f" .GetFloat64}}
|
|
</td>
|
|
{{end}}
|
|
|
|
{{define "amountf64"}}
|
|
<span class="right {{if eq . 0.0}}zero{{else if lt . 0.0}}negative{{end}}">
|
|
{{printf "%.2f" .}}
|
|
</span>
|
|
{{end}}
|
|
|
|
{{define "amountf64-cell"}}
|
|
<td class="right {{if eq . 0.0}}zero{{else if lt . 0.0}}negative{{end}}">
|
|
{{printf "%.2f" .}}
|
|
</td>
|
|
{{end}} |