100 lines
3.9 KiB
HTML
100 lines
3.9 KiB
HTML
<div data-ng-include src="'/views/includes/connection.html'"></div>
|
|
<section data-ng-controller="BlocksController" data-ng-init="findOne()">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-gray col-gray-fixed">
|
|
<h1 class="text-center">Block</h1>
|
|
<div class="block-id">
|
|
<span class="glyphicon glyphicon-list-alt"></span>
|
|
<h2 data-ng-if="block">#{{ block.height }}</h2>
|
|
</div>
|
|
<div class="m10v">
|
|
<button class="pull-right btn-copy" clip-copy="block.hash"></button>
|
|
<a class="ellipsis" href="/address/{{block.hash}}">{{block.hash}}</a>
|
|
</div>
|
|
<div class="m20v" data-ng-show="!tx.isCoinBase">
|
|
<h4>Hashes</h4>
|
|
<table class="table" style="table-layout: fixed">
|
|
<tbody>
|
|
<tr>
|
|
<td class="small"> Previous Block</td>
|
|
<td><a class="address ellipsis" href="/block/{{block.previousblockhash}}">{{block.previousblockhash}}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="small"> Next Block</td>
|
|
<td><a class="address ellipsis" href="/block/{{block.nextblockhash}}">{{block.nextblockhash}}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="small">Merkle Root</td>
|
|
<td> <p class="address ellipsis"> {{block.merkleroot}} </p> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- END OF TRANSACTIONS TABLE -->
|
|
<div data-ng-include src="'/views/includes/currency.html'"></div>
|
|
</div> <!-- END OF COL-GRAY -->
|
|
|
|
<div class="col-xs-12 col-md-9 col-md-offset-3">
|
|
<h2>Summary</h2>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td> <strong> Number Of Transactions </strong> </td>
|
|
<td class="text-right text-muted">{{block.tx.length}}<td>
|
|
</tr>
|
|
<tr>
|
|
<td> <strong> Height </strong></td>
|
|
<td class="text-right text-muted">{{block.height}}
|
|
<span data-ng-show="block.isMainChain" class="text-success">(Mainchain)</span>
|
|
<span data-ng-show="!block.isMainChain" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Orphaned)</span>
|
|
</tr>
|
|
<tr>
|
|
<td> <strong> Block Reward </strong></td>
|
|
<td class="text-right text-muted">{{$root.currency.getConvertion(block.reward)}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <strong> Timestamp </strong></td>
|
|
<td class="text-right text-muted">{{block.time * 1000 | date:'medium'}}</td>
|
|
</tr>
|
|
</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>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div><!-- END OF ROW -->
|
|
|
|
<div data-ng-controller="transactionsController" data-ng-init="load('block')">
|
|
<h2>Transactions <small >Transactions contained within this block</small></h2>
|
|
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|