You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
1.1 KiB

- var currencyFormatInfo = utils.getCurrencyFormatInfo(currencyFormatType);
if (currencyValue > 0)
if (currencyValueDecimals)
- var parts = utils.formatCurrencyAmountWithForcedDecimalPlaces(currencyValue, currencyFormatType, currencyValueDecimals);
else
- var parts = utils.formatCurrencyAmount(currencyValue, currencyFormatType);
//span #{JSON.stringify(currencyFormatInfo)}
span.text-monospace #{parts.val}#{(currencyValueDecimals && currencyFormatInfo.type == "native" && currencyFormatInfo.multiplier <= 1000) ? "…" : ""}
if (parts.lessSignificantDigits)
span.text-monospace.text-small(style="margin-left: 2px;") #{parts.lessSignificantDigits}
if (currencyFormatInfo.type == "native")
if (exchangeRates)
small.border-dotted.ml-1(data-toggle="tooltip", title=utils.formatExchangedCurrency(currencyValue, "usd")) #{parts.currencyUnit}
else
small.ml-1 #{parts.currencyUnit}
else if (currencyFormatInfo.type == "exchanged")
small.border-dotted.ml-1(data-toggle="tooltip", title=`${utils.formatCurrencyAmount(currencyValue, coinConfig.defaultCurrencyUnit.name).simpleVal} BTC`) #{parts.currencyUnit}
else
span.text-monospace 0