Make it easier to show mainnet or testnet

This commit is contained in:
Jack Grigg 2016-10-28 17:29:55 -07:00
parent 7ea8ed4bf3
commit 6630449b7e
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
4 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,7 @@
'use strict';
var netSymbol = 'ZEC';
var testnet = false;
var netSymbol = testnet ? 'TAZ' : 'ZEC';
var defaultLanguage = localStorage.getItem('insight-language') || 'en';
var defaultCurrency = localStorage.getItem('insight-currency') || netSymbol;

View File

@ -7,6 +7,7 @@ angular.module('insight.system').controller('HeaderController',
$rootScope.currency = {
factor: 1,
bitstamp: 0,
testnet: testnet,
netSymbol: netSymbol,
symbol: netSymbol
};

View File

@ -64,7 +64,7 @@
<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>
<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 class="powered-text">
<small class="text-muted" translate>Powered by</small>