Currency support on address pages and missing places
This commit is contained in:
parent
0b3ac5804f
commit
4e49989d24
|
@ -4,9 +4,7 @@ angular.module('insight.system').controller('FooterController',
|
|||
function($rootScope, $scope, Version, Currency) {
|
||||
|
||||
var _roundFloat = function(x, n) {
|
||||
if(!parseInt(n, 10)) n = 0;
|
||||
|
||||
if(!parseFloat(x)) return false;
|
||||
if(!parseInt(n, 10) || !parseFloat(x)) n = 0;
|
||||
|
||||
return Math.round(x * Math.pow(10, n)) / Math.pow(10, n);
|
||||
};
|
||||
|
|
|
@ -16,15 +16,15 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td class="small">Total Received</td>
|
||||
<td class="address ellipsis text-right">{{address.totalReceived}} BTC</td>
|
||||
<td class="address ellipsis text-right">{{$root.currency.getConversion(address.totalReceived)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="small">Total Sent</td>
|
||||
<td class="address ellipsis text-right">{{address.totalSent}} BTC</td>
|
||||
<td class="address ellipsis text-right">{{$root.currency.getConversion(address.totalSent)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="small">Final Balance</td>
|
||||
<td class="address ellipsis text-right">{{address.balance}} BTC</td>
|
||||
<td class="address ellipsis text-right">{{$root.currency.getConversion(address.balance)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="small">No. Transactions</td>
|
||||
|
|
|
@ -43,15 +43,15 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><strong>Total Input</strong></td>
|
||||
<td class="text-muted text-right">{{tx.valueIn}} BTC</td>
|
||||
<td class="text-muted text-right">{{$root.currency.getConversion(tx.valueIn)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Total Output</strong></td>
|
||||
<td class="text-muted text-right">{{tx.valueOut}} BTC</td>
|
||||
<td class="text-muted text-right">{{$root.currency.getConversion(tx.valueOut)}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Fees</strong></td>
|
||||
<td class="text-muted text-right">{{tx.fees}} BTC</td>
|
||||
<td class="text-muted text-right">{{$root.currency.getConversion(tx.fees)}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
</div>
|
||||
<div class="line-top row">
|
||||
<div class="col-xs-4 col-md-6">
|
||||
<button data-ng-show="!tx.isCoinBase" class="btn btn-default">Fees: {{tx.fees}}</button>
|
||||
<button data-ng-show="!tx.isCoinBase" class="btn btn-default">Fees: {{$root.currency.getConversion(tx.fees)}}</button>
|
||||
</div>
|
||||
<div class="col-xs-8 col-md-6 text-right">
|
||||
<button data-ng-show="tx.confirmations" class="btn btn-success">{{tx.confirmations}} Confirmations</button>
|
||||
|
|
Loading…
Reference in New Issue