frontend/templates: fix money rendering
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
fc272ffb7b
commit
75135e6c7f
4 changed files with 12 additions and 11 deletions
|
@ -26,9 +26,7 @@
|
|||
<div class="col text-left">
|
||||
Qty: {{.Quantity}}<br/>
|
||||
<strong>
|
||||
{{.Price.CurrencyCode}}
|
||||
{{.Price.Amount.Decimal}}.
|
||||
{{- .Price.Amount.Fractional}}{{- if lt .Price.Amount.Fractional 10}}0{{end}}
|
||||
{{ renderMoney .Price}}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -38,10 +38,8 @@
|
|||
</a>
|
||||
</div>
|
||||
<small class="text-muted">
|
||||
{{.Price.CurrencyCode}}
|
||||
<strong>{{.Price.Amount.Decimal}}.{{.Price.Amount.Fractional}}
|
||||
{{- if lt .Price.Amount.Fractional 10}}0{{end}}
|
||||
</strong>
|
||||
{{ renderMoney .Price }}
|
||||
</strong>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -13,9 +13,7 @@
|
|||
<h2>{{$.product.Item.Name}}</h2>
|
||||
|
||||
<p class="text-muted">
|
||||
{{$.product.Price.CurrencyCode}}
|
||||
{{$.product.Price.Amount.Decimal}}.
|
||||
{{- $.product.Price.Amount.Fractional}}{{- if lt $.product.Price.Amount.Fractional 10}}0{{end}}
|
||||
{{ renderMoney $.product.Price}}
|
||||
</p>
|
||||
<hr/>
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue