Improve support for adding a new currency
This commit is contained in:
parent
fb65b4d6fb
commit
7169d1ba27
2 changed files with 12 additions and 4 deletions
|
|
@ -38,7 +38,7 @@
|
|||
<div class="grid-item text-end">
|
||||
{% if item.price and item.currency %}
|
||||
<span class="badge bg-info text-nowrap">{{ "{:,d}".format(item.price | int) }} {{ item.currency }}</span>
|
||||
{% if item.currency != "GBP" %}
|
||||
{% if item.currency != "GBP" and item.currency in fx_rate %}
|
||||
<span class="badge bg-info text-nowrap">{{ "{:,.2f}".format(item.price / fx_rate[item.currency]) }} GBP</span>
|
||||
{% endif %}
|
||||
{% elif item.free %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue