fix block layout
This commit is contained in:
parent
2e96912dd2
commit
62eba270d3
|
@ -28,93 +28,93 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h1>Block #{{block.height}}</h1>
|
<h1>Block #{{block.height}}</h1>
|
||||||
<div class="progress progress-striped active" data-ng-if="!block.hash">
|
<div class="text-muted" data-ng-if="!block.hash">
|
||||||
<div class="progress-bar progress-bar-info" style="width: 100%">
|
<span>Loading Block Information...</span>
|
||||||
<span>Loading Block...</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row ng-cloak" data-ng-cloak data-ng-if="block.hash">
|
<div class="ng-cloak" data-ng-cloak data-ng-if="block.hash">
|
||||||
<div class="well well-sm ellipsis">
|
<div class="well well-sm ellipsis">
|
||||||
<strong>BlockHash</strong>
|
<strong>BlockHash</strong>
|
||||||
<span class="txid text-muted">{{block.hash}}</span>
|
<span class="txid text-muted">{{block.hash}}</span>
|
||||||
<span class="btn-copy" clip-copy="block.hash"></span>
|
<span class="btn-copy" clip-copy="block.hash"></span>
|
||||||
</div>
|
</div>
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
<div class="col-md-6">
|
<div class="row">
|
||||||
<table class="table" style="table-layout: fixed">
|
<div class="col-md-6">
|
||||||
<tbody>
|
<table class="table" style="table-layout: fixed">
|
||||||
<tr>
|
<tbody>
|
||||||
<td><strong>Number Of Transactions</strong></td>
|
<tr>
|
||||||
<td class="text-right text-muted">{{block.tx.length}}</td>
|
<td><strong>Number Of Transactions</strong></td>
|
||||||
</tr>
|
<td class="text-right text-muted">{{block.tx.length}}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td><strong>Height</strong></td>
|
<tr>
|
||||||
<td class="text-right text-muted">{{block.height}}
|
<td><strong>Height</strong></td>
|
||||||
<span data-ng-show="block.isMainChain" class="text-success">(Mainchain)</span>
|
<td class="text-right text-muted">{{block.height}}
|
||||||
<span data-ng-show="!block.isMainChain" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Orphaned)</span>
|
<span data-ng-show="block.isMainChain" class="text-success">(Mainchain)</span>
|
||||||
</td>
|
<span data-ng-show="!block.isMainChain" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Orphaned)</span>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td><strong>Block Reward</strong></td>
|
<tr>
|
||||||
<td class="text-right text-muted">{{$root.currency.getConvertion(block.reward) || block.reward + ' BTC'}}</td>
|
<td><strong>Block Reward</strong></td>
|
||||||
</tr>
|
<td class="text-right text-muted">{{$root.currency.getConvertion(block.reward) || block.reward + ' BTC'}}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td><strong>Timestamp</strong></td>
|
<tr>
|
||||||
<td class="text-right text-muted">{{block.time * 1000 | date:'medium'}}</td>
|
<td><strong>Timestamp</strong></td>
|
||||||
</tr>
|
<td class="text-right text-muted">{{block.time * 1000 | date:'medium'}}</td>
|
||||||
<tr data-ng-show="block.poolInfo">
|
</tr>
|
||||||
<td><strong>Mined by</strong></td>
|
<tr data-ng-show="block.poolInfo">
|
||||||
<td class="text-right text-muted">
|
<td><strong>Mined by</strong></td>
|
||||||
<a href="{{block.poolInfo.url}}" target="_blank" title="{{block.poolInfo.poolName}}">{{block.poolInfo.poolName}}</a>
|
<td class="text-right text-muted">
|
||||||
</td>
|
<a href="{{block.poolInfo.url}}" target="_blank" title="{{block.poolInfo.poolName}}">{{block.poolInfo.poolName}}</a>
|
||||||
</tr>
|
</td>
|
||||||
<tr>
|
</tr>
|
||||||
<td><strong>Merkle Root</strong></td>
|
<tr>
|
||||||
<td class="text-right text-muted">
|
<td><strong>Merkle Root</strong></td>
|
||||||
<div class="ellipsis">
|
<td class="text-right text-muted">
|
||||||
<span class="btn-copy" clip-copy="block.merkleroot"></span>
|
<div class="ellipsis">
|
||||||
<span>{{block.merkleroot}}</span>
|
<span class="btn-copy" clip-copy="block.merkleroot"></span>
|
||||||
</div>
|
<span>{{block.merkleroot}}</span>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</td>
|
||||||
<tr data-ng-show="block.previousblockhash">
|
</tr>
|
||||||
<td><strong>Previous Block</strong></td>
|
<tr data-ng-show="block.previousblockhash">
|
||||||
<td class="text-right"><a href="/block/{{block.previousblockhash}}">{{block.height-1}}</a></td>
|
<td><strong>Previous Block</strong></td>
|
||||||
</tr>
|
<td class="text-right"><a href="/block/{{block.previousblockhash}}">{{block.height-1}}</a></td>
|
||||||
</tbody>
|
</tr>
|
||||||
</table>
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<table class="table">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td> <strong> Difficulty </strong></td>
|
||||||
|
<td class="text-right text-muted">{{block.difficulty}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> <strong> Bits </strong></td>
|
||||||
|
<td class="text-right text-muted">{{block.bits}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> <strong> Size (bytes) </strong></td>
|
||||||
|
<td class="text-right text-muted">{{block.size}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> <strong> Version </strong></td>
|
||||||
|
<td class="text-right text-muted">{{block.version}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> <strong> Nonce </strong></td>
|
||||||
|
<td class="text-right text-muted">{{block.nonce}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr data-ng-show="block.nextblockhash">
|
||||||
|
<td><strong>Next Block</strong></td>
|
||||||
|
<td class="text-right"><a href="/block/{{block.nextblockhash}}">{{block.height+1}}</a></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
</div>
|
||||||
<table class="table">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td> <strong> Difficulty </strong></td>
|
|
||||||
<td class="text-right text-muted">{{block.difficulty}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> <strong> Bits </strong></td>
|
|
||||||
<td class="text-right text-muted">{{block.bits}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> <strong> Size (bytes) </strong></td>
|
|
||||||
<td class="text-right text-muted">{{block.size}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> <strong> Version </strong></td>
|
|
||||||
<td class="text-right text-muted">{{block.version}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td> <strong> Nonce </strong></td>
|
|
||||||
<td class="text-right text-muted">{{block.nonce}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr data-ng-show="block.nextblockhash">
|
|
||||||
<td><strong>Next Block</strong></td>
|
|
||||||
<td class="text-right"><a href="/block/{{block.nextblockhash}}">{{block.height+1}}</a></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div><!-- END OF ROW -->
|
|
||||||
|
|
||||||
<div data-ng-controller="transactionsController" data-ng-init="load('block')">
|
<div data-ng-controller="transactionsController" data-ng-init="load('block')">
|
||||||
<h3>Transactions</h3>
|
<h3>Transactions</h3>
|
||||||
|
|
Loading…
Reference in New Issue