Merge pull request #311 from colkito/feature/status-start-end-date

added start date and finix date in status page
This commit is contained in:
Matias Alejo Garcia 2014-02-14 11:40:17 -02:00
commit b2d5350a28
1 changed files with 129 additions and 121 deletions

View File

@ -10,10 +10,10 @@
<div class="col-xs-12 col-md-8">
<h2>Sync Status</h2>
<table class="table" data-ng-controller="StatusController" data-ng-init="getSync()">
<tbody>
<thead>
<span class="text-danger" data-ng-show="sync && sync.error">{{sync.error}}</span>
</thead>
<tbody>
<tr>
<td>Sync Progress</td>
<td>
@ -22,12 +22,20 @@
<span>{{sync.syncPercentage}}% Complete</span>
</div>
</div>
</td>
</tr>
<tr>
<td>Current Sync Status</td>
<td class="text-right">{{sync.status}}</td>
</tr>
<tr>
<td>Start Date</td>
<td><time datetime="{{sync.startTs | date:'medium'}}">{{humanSince(sync.startTs)}}</time></td>
</tr>
<tr data-ng-show="sync.endTs">
<td>Finish Date</td>
<td><time datetime="{{sync.startTs | date:'medium'}}">{{humanSince(sync.endTs)}}</time></td>
</tr>
<tr>
<td>Initial Block Chain Height</td>
<td class="text-right">{{sync.blockChainHeight}}</td>
@ -35,16 +43,22 @@
<tr>
<td>Synced Blocks</td>
<td class="text-right">{{sync.syncedBlocks}}</td>
</tr>
<tr>
<td>Skipped Blocks (previously synced)</td>
<td class="text-right">{{sync.skippedBlocks}}</td>
</tr>
<tr>
<td>Sync Type</td>
<td class="text-right">{{sync.type}}</td>
</tr>
</tbody>
</table>
<h2>Last Block</h2>
<table class="table" style="table-layout: fixed" data-ng-controller="StatusController" data-ng-init="getStatus('LastBlockHash')">
<thead data-ng-include src="'/views/includes/infoStatus.html'"></thead>
<tbody>
<tr>
<td>Last Block Hash (Bitcoind)</td>
<td class="text-right ellipsis"><a href="/block/{{lastblockhash}}">{{lastblockhash}}</a></td>
@ -52,14 +66,11 @@
<tr>
<td>Current Blockchain Tip(insight)</td>
<td class="text-right ellipsis"><a href="/block/{{syncTipHash}}">{{syncTipHash}}</a></td>
</tr>
</tbody>
</table>
<h2>Transaction Output Set Information</h2>
<div data-ng-controller="StatusController">
<button data-ng-click="txoutLoading=1;getStatus('TxOutSetInfo')" class="btn btn-default" data-ng-show="!txoutsetinfo.height">
Show Transaction Output data
@ -100,11 +111,8 @@
</tbody>
</table>
</div>
</div> <!-- END OF COL-8 -->
<div class="col-xs-12 col-md-4 col-gray">
<h2>Bitcoin node information</h2>
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Info')">
@ -152,7 +160,7 @@
<h4>Difficulty</h4>
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Difficulty')">
<thead data-ng-include src="'/views/includes/infoStatus.html'"></thead>
<tbody
<tbody>
<tr>
<td>Mining Difficulty</td>
<td>{{difficulty}}</td>