UNPKG

@rahlfantasy/block-explorer

Version:
45 lines (42 loc) 1.07 kB
<template name="peerstats"> <h4 class="ui pageHeader header"> <div class="content"> Block Explorer Peers </div> </h4> {{#with peerstats}} {{#if zeroCheck}} <div class="ui negative message"> <i class="close icon"></i> <div class="header"> No peers found. </div> </div> {{else}} <table class="ui padded table"> <thead> <tr> <th class="two wide">Node</th> <th class="two wide">Port</th> <th class="two wide">Block #</th> <th>Header Hash</th> <th class="two wide">Cumulative Difficulty</th> <th class="two wide">Version</th> <th class="two wide">Last Update</th> </tr> </thead> <tbody> {{#each peerstats.peers_stat}} <tr> <td>{{this.peer_ip}}</td> <td>{{this.port}}</td> <td>{{this.node_chain_state.block_number}}</td> <td>{{this.node_chain_state.header_hash}}</td> <td>{{this.node_chain_state.cumulative_difficulty}}</td> <td>{{this.node_chain_state.version}}</td> <td>{{ts}}</td> </tr> {{/each}} </tbody> </table> {{/if}} {{/with}} </template>