Make it easier to show mainnet or testnet
This commit is contained in:
parent
7ea8ed4bf3
commit
6630449b7e
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var netSymbol = 'ZEC';
|
var testnet = false;
|
||||||
|
var netSymbol = testnet ? 'TAZ' : 'ZEC';
|
||||||
|
|
||||||
var defaultLanguage = localStorage.getItem('insight-language') || 'en';
|
var defaultLanguage = localStorage.getItem('insight-language') || 'en';
|
||||||
var defaultCurrency = localStorage.getItem('insight-currency') || netSymbol;
|
var defaultCurrency = localStorage.getItem('insight-currency') || netSymbol;
|
||||||
|
|
|
@ -7,6 +7,7 @@ angular.module('insight.system').controller('HeaderController',
|
||||||
$rootScope.currency = {
|
$rootScope.currency = {
|
||||||
factor: 1,
|
factor: 1,
|
||||||
bitstamp: 0,
|
bitstamp: 0,
|
||||||
|
testnet: testnet,
|
||||||
netSymbol: netSymbol,
|
netSymbol: netSymbol,
|
||||||
symbol: netSymbol
|
symbol: netSymbol
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<p translate><strong>insight</strong> is an <a href="https://insight.is/"
|
<p translate><strong>insight</strong> is an <a href="https://insight.is/"
|
||||||
target="_blank">open-source Zcash blockchain explorer</a> with complete REST and websocket APIs that can be used for writing web wallets and other apps that need more advanced blockchain queries than provided by zcashd RPC. Check out the <a href="https://github.com/str4d/insight-ui-zcash" target="_blank">source code</a>.</p>
|
target="_blank">open-source Zcash blockchain explorer</a> with complete REST and websocket APIs that can be used for writing web wallets and other apps that need more advanced blockchain queries than provided by zcashd RPC. Check out the <a href="https://github.com/str4d/insight-ui-zcash" target="_blank">source code</a>.</p>
|
||||||
<p translate><strong>insight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/str4d/insight-ui-zcash/issues" target="_blank">github issue tracker</a>.</p>
|
<p translate><strong>insight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/str4d/insight-ui-zcash/issues" target="_blank">github issue tracker</a>.</p>
|
||||||
<p><strong>This explorer is currently showing testnet Zcash!</strong></p>
|
<p data-ng-if='currency.testnet'><strong>This explorer is currently showing testnet Zcash!</strong></p>
|
||||||
<div id="powered" class="row">
|
<div id="powered" class="row">
|
||||||
<div class="powered-text">
|
<div class="powered-text">
|
||||||
<small class="text-muted" translate>Powered by</small>
|
<small class="text-muted" translate>Powered by</small>
|
||||||
|
|
Loading…
Reference in New Issue