96 lines
3.4 KiB
HTML
96 lines
3.4 KiB
HTML
<section data-ng-controller="BlocksController" data-ng-init="findOne()">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="bs-sidebar hidden-print affix col-gray">
|
|
<div class="block-id">
|
|
<div class="icon-block text-center">
|
|
<span class="glyphicon glyphicon-list-alt"></span>
|
|
</div>
|
|
<h1 data-ng-if="block">Block #{{ block.height }}</h1>
|
|
</div>
|
|
|
|
<div class="m50v" data-ng-show="!tx.isCoinBase">
|
|
<h4>Hashes</h4>
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td> <small>Hash </small></td>
|
|
<td><a class="address ellipsis" href="/#!/block/{{block.hash}}">{{block.hash}}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><small> Previous Block</small></td>
|
|
<td><a class="address ellipsis" href="/#!/block/{{block.previousblockhash}}">{{block.previousblockhash}}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><small> Next Block</small></td>
|
|
<td><a class="address ellipsis" href="/#!/block/{{block.nextblockhash}}">{{block.nextblockhash}}</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td><small> Merkle Root</small></td>
|
|
<td> <p class="address ellipsis"> {{block.merkleroot}} </p> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
</div> <!-- END OF COL-GRAY -->
|
|
|
|
<div class="col-md-9">
|
|
<h3>Summary</h3>
|
|
<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}}</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 </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="byBlock(params.blockHash)">
|
|
<h2>Transactions <small >Transactions contained within this block</small></h2>
|
|
<div data-ng-include src="'/views/transaction/list.html'"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|