Browse Source

web-ui: application of explorerDateTime pipe

prometheus-integration
Mario Mejia 7 years ago
committed by Alexis Hernandez
parent
commit
9174175ef1
  1. 2
      web-ui/src/app/components/address-details/address-details.component.html
  2. 14
      web-ui/src/app/components/block-details/block-details.component.html
  3. 2
      web-ui/src/app/components/masternode-details/masternode-details.component.html
  4. 2
      web-ui/src/app/components/transaction-details/transaction-details.component.html

2
web-ui/src/app/components/address-details/address-details.component.html

@ -65,7 +65,7 @@
<td>
<a routerLink="/blocks/{{item.blockhash}}">{{item.blockhash | slice:0:15}}...</a>
</td>
<td>{{item.time * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>{{item.time * 1000 | explorerDatetime}}</td>
<td>{{item.received >= item.sent ? '+' : ''}}{{item.received - item.sent}} {{'label.coinName' | translate}}</td>
<td>{{item.size}} bytes</td>
</tr>

14
web-ui/src/app/components/block-details/block-details.component.html

@ -64,11 +64,11 @@
</tr>
<tr>
<td>{{'label.blocktime' | translate}}</td>
<td>{{blockDetails.block.time * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>{{blockDetails.block.time * 1000 | explorerDatetime}}</td>
</tr>
<tr>
<td>{{'label.medianTime' | translate}}</td>
<td>{{blockDetails.block.medianTime * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>{{blockDetails.block.medianTime * 1000 | explorerDatetime}}</td>
</tr>
<tr>
<td></td>
@ -102,7 +102,7 @@
<th class="col-xs-2 col-sm-2 col-md-1 col-lg-1">{{blockDetails.rewards.reward.value}} {{'label.coinName' | translate}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{'label.address' | translate}}</td>
@ -121,7 +121,7 @@
<th class="col-xs-2 col-sm-2 col-md-1 col-lg-1">{{getPoSTotalReward(blockDetails)}} {{'label.coinName' | translate}}</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
@ -172,7 +172,7 @@
<th class="col-xs-2 col-sm-2 col-md-1 col-lg-1">{{getTPoSTotalReward(blockDetails)}} {{'label.coinName' | translate}}</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
@ -249,7 +249,7 @@
<th class="col-xs-2 col-sm-2 col-md-1 col-lg-1">{{'label.transactions' | translate}}</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of blockDetails.block.transactions">
<td>
@ -260,4 +260,4 @@
</table>
</div>
</div>
</div>
</div>

2
web-ui/src/app/components/masternode-details/masternode-details.component.html

@ -16,7 +16,7 @@
</tr>
<tr>
<td>{{'label.lastSeen' | translate}}</td>
<td>{{masternode.lastSeen * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>{{masternode.lastSeen * 1000 | explorerDatetime}}</td>
</tr>
<!-- TODO: Display status when the WATCHDOG_EXPIRED bug is fixed.
<tr>

2
web-ui/src/app/components/transaction-details/transaction-details.component.html

@ -30,7 +30,7 @@
</tr>
<tr>
<td>{{'label.blocktime' | translate}}</td>
<td>{{transaction.blocktime * 1000 | date:'MMMM d, y, h:mm:ss a'}}</td>
<td>{{transaction.blocktime * 1000 | explorerDatetime}}</td>
</tr>
<tr>
<td>{{'label.fee' | translate}}</td>

Loading…
Cancel
Save