Show network label if not on mainnet
This commit is contained in:
parent
5c070d0e65
commit
6c7776904a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "flosight-ui",
|
"name": "flosight-ui",
|
||||||
"description": "An open-source frontend for the Flosight API. The Flosight API provides you with a convenient, powerful and simple way to query and broadcast data on the florincoin network and build your own services with it.",
|
"description": "An open-source frontend for the Flosight API. The Flosight API provides you with a convenient, powerful and simple way to query and broadcast data on the florincoin network and build your own services with it.",
|
||||||
"version": "5.0.0-beta.59",
|
"version": "5.0.0-beta.60",
|
||||||
"repository": "git://github.com/bitpay/flosight-ui.git",
|
"repository": "git://github.com/bitpay/flosight-ui.git",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/flosight-ui/issues"
|
"url": "https://github.com/bitpay/flosight-ui/issues"
|
||||||
|
|||||||
@ -4,7 +4,7 @@ var TRANSACTION_DISPLAYED = 10;
|
|||||||
var BLOCKS_DISPLAYED = 5;
|
var BLOCKS_DISPLAYED = 5;
|
||||||
|
|
||||||
angular.module('flosight.system').controller('IndexController',
|
angular.module('flosight.system').controller('IndexController',
|
||||||
function($scope, Global, getSocket, Blocks, Status) {
|
function($scope, Global, getSocket, Blocks) {
|
||||||
$scope.global = Global;
|
$scope.global = Global;
|
||||||
|
|
||||||
var _getBlocks = function(loadTxs) {
|
var _getBlocks = function(loadTxs) {
|
||||||
@ -49,19 +49,6 @@ angular.module('flosight.system').controller('IndexController',
|
|||||||
_startSocket();
|
_startSocket();
|
||||||
});
|
});
|
||||||
|
|
||||||
var _getStatus = function(q) {
|
|
||||||
Status.get({
|
|
||||||
q: 'get' + q
|
|
||||||
},
|
|
||||||
function(d) {
|
|
||||||
$scope.loaded = 1;
|
|
||||||
angular.extend($scope, d);
|
|
||||||
},
|
|
||||||
function(e) {
|
|
||||||
$scope.error = 'API ERROR: ' + e.data;
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.humanSince = function(time) {
|
$scope.humanSince = function(time) {
|
||||||
var m = moment.unix(time);
|
var m = moment.unix(time);
|
||||||
return m.max().fromNow();
|
return m.max().fromNow();
|
||||||
@ -70,7 +57,6 @@ angular.module('flosight.system').controller('IndexController',
|
|||||||
$scope.index = function() {
|
$scope.index = function() {
|
||||||
_getBlocks(true);
|
_getBlocks(true);
|
||||||
_startSocket();
|
_startSocket();
|
||||||
_getStatus('Info');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.txs = [];
|
$scope.txs = [];
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="flosight navbar-brand" href=".">flosight</a>
|
<a class="flosight navbar-brand" href="." data-ng-init="getStatus('Info')">flosight <sub data-ng-hide="info.network === 'mainnet'" style="font-size: 35%">({{info.network}})</sub></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse" collapse="$root.isCollapsed">
|
<div class="navbar-collapse collapse" collapse="$root.isCollapsed">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<div id="search-form-mobile" class="visible-xs" data-ng-include src="'views/includes/search.html'"></div>
|
<div id="search-form-mobile" class="visible-xs" data-ng-include src="'views/includes/search.html'"></div>
|
||||||
|
|
||||||
<h1 translate>Latest Blocks {{info.network}}</h1>
|
<h1 translate>Latest Blocks</h1>
|
||||||
<table class="table table-hover table-striped" style="table-layout: fixed">
|
<table class="table table-hover table-striped" style="table-layout: fixed">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user