2015-07-14 21:37:23 +02:00
|
|
|
//- index.jade
|
|
|
|
extends ./layout.jade
|
|
|
|
|
|
|
|
block content
|
|
|
|
div.container-fluid(ng-controller='StatsCtrl')
|
2015-07-30 17:00:18 +02:00
|
|
|
div.row
|
|
|
|
div.col-xs-12.stats-boxes
|
|
|
|
div.row.second-row
|
|
|
|
div.col-xs-12.stat-holder.box
|
|
|
|
div.active-nodes.text-orange
|
|
|
|
i.icon-hashrate
|
|
|
|
span.small-title Block #1028201 hash
|
|
|
|
span.small-value {{frontierHash}}
|
|
|
|
|
2015-07-14 21:37:23 +02:00
|
|
|
div.row(ng-cloak)
|
2015-07-30 17:00:18 +02:00
|
|
|
div.col-lg-3.col-md-3.col-sm-6.stat-holder
|
2015-07-14 21:37:23 +02:00
|
|
|
div.big-info.bestblock.text-info
|
|
|
|
div.pull-left.icon-full-width
|
|
|
|
i.icon-block
|
|
|
|
div.big-details-holder
|
|
|
|
span.small-title best block
|
|
|
|
span.big-details {{'#'}}{{ bestBlock | number}}
|
|
|
|
div.clearfix
|
2015-07-30 17:00:18 +02:00
|
|
|
div.col-lg-3.col-md-3.col-sm-6.stat-holder
|
2015-07-14 21:37:23 +02:00
|
|
|
div.big-info.blocktime(class="{{ lastBlock | timeClass : true }}")
|
|
|
|
div.pull-left.icon-full-width
|
|
|
|
i.icon-time
|
|
|
|
div.big-details-holder
|
|
|
|
span.small-title last block
|
|
|
|
span.big-details {{ lastBlock | blockTimeFilter }}
|
|
|
|
div.clearfix
|
2015-07-30 17:00:18 +02:00
|
|
|
div.col-lg-3.col-md-3.col-sm-6.stat-holder
|
2015-07-14 21:37:23 +02:00
|
|
|
div.big-info.avgblocktime(class="{{ avgBlockTime | avgTimeClass }}")
|
|
|
|
div.pull-left.icon-full-width
|
|
|
|
i.icon-gas
|
|
|
|
div.big-details-holder
|
|
|
|
span.small-title avg block time
|
|
|
|
span.big-details {{ avgBlockTime | avgTimeFilter }}
|
|
|
|
div.clearfix
|
2015-07-30 17:00:18 +02:00
|
|
|
div.col-lg-3.col-md-3.col-sm-6.stat-holder
|
2015-07-14 21:37:23 +02:00
|
|
|
div.big-info.difficulty.text-danger
|
|
|
|
div.pull-left.icon-full-width
|
|
|
|
i.icon-difficulty
|
|
|
|
div.big-details-holder
|
|
|
|
span.small-title difficulty
|
|
|
|
span.big-details
|
|
|
|
span.small-hash {{ lastDifficulty | number }}
|
|
|
|
div.clearfix
|
|
|
|
|
|
|
|
div.clearfix
|
|
|
|
|
|
|
|
div.row(ng-cloak)
|
2015-07-20 15:23:02 +02:00
|
|
|
div.col-xs-12.stats-boxes(style="padding-top: 0px;")
|
2015-07-14 21:37:23 +02:00
|
|
|
div.row.second-row
|
2015-07-30 14:03:53 +02:00
|
|
|
div.col-md-4.col-sm-12.stat-holder.box
|
2015-07-14 21:37:23 +02:00
|
|
|
div.active-nodes(class="{{ nodesActive | nodesActiveClass : nodesTotal }}")
|
|
|
|
i.icon-node
|
|
|
|
span.small-title active nodes
|
|
|
|
span.small-value {{nodesActive}}/{{nodesTotal}}
|
2015-07-30 14:03:53 +02:00
|
|
|
div.col-md-4.col-sm-12.stat-holder.box
|
2015-07-19 17:26:34 +02:00
|
|
|
div.gasprice(class="{{ nodes | consensusClass : bestStats }}")
|
|
|
|
i.icon-check-o
|
|
|
|
span.small-title nodes status
|
|
|
|
span.small-value {{ nodes | consensusFilter : bestStats }}
|
2015-07-30 14:03:53 +02:00
|
|
|
div.col-md-4.col-sm-12.stat-holder.box
|
2015-07-14 21:37:23 +02:00
|
|
|
div.page-latency(class="{{ {active: true, latency: latency} | latencyClass }}")
|
|
|
|
i.icon-clock
|
|
|
|
span.small-title page latency
|
|
|
|
span.small-value {{latency}} ms
|
|
|
|
|
|
|
|
div.row(ng-cloak, style="padding-top: 10px")
|
|
|
|
table.table.table-striped
|
|
|
|
thead
|
|
|
|
tr.text-info
|
2015-07-30 17:00:18 +02:00
|
|
|
th.th-nodecheck.hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Pin nodes to display first", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
|
|
|
|
th.th-nodename
|
|
|
|
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="orderTable(['info.name'], false)")
|
2015-07-30 13:49:25 +02:00
|
|
|
th.th-nodetype.hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type", ng-click="orderTable(['info.node'], false)")
|
|
|
|
th.th-latency
|
|
|
|
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency", ng-click="orderTable(['stats.latency'], false)")
|
2015-07-21 18:16:35 +02:00
|
|
|
//- th
|
2015-07-14 21:37:23 +02:00
|
|
|
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers", ng-click="orderTable(['-stats.peers'], false)")
|
|
|
|
th
|
|
|
|
i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
|
2015-07-30 17:00:18 +02:00
|
|
|
th.th-blockhash.hidden-xs
|
2015-07-30 13:49:25 +02:00
|
|
|
th.th-blockhash.hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
i.icon-difficulty(data-toggle="tooltip", data-placement="top", title="Total difficulty", ng-click="orderTable(['-stats.block.totalDifficulty'], false)")
|
|
|
|
th.th-blocktime
|
|
|
|
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="orderTable(['-stats.block.received'], false)")
|
|
|
|
th.th-peerPropagationTime
|
|
|
|
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
|
2015-07-21 18:16:35 +02:00
|
|
|
//- th.th-peerPropagationChart
|
|
|
|
//- th.th-peerPropagationAvg
|
2015-07-14 21:37:23 +02:00
|
|
|
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Average propagation time", ng-click="orderTable(['stats.propagationAvg'], false)")
|
|
|
|
tbody(ng-cloak)
|
|
|
|
tr(ng-repeat='node in nodes | orderBy:predicate track by node.id', class="{{ node.stats | mainClass : bestBlock }}", id="node_{{node.id}}")
|
2015-07-30 17:00:18 +02:00
|
|
|
td.td-nodecheck.hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
i(ng-click="pinNode(node.id)", class="{{ node.pinned | nodePinClass }}", data-toggle="tooltip", data-placement="right", data-original-title="Click to {{ node.pinned ? 'un' : '' }}pin")
|
|
|
|
td.nodeInfo(rel="{{node.id}}")
|
|
|
|
span.small(data-toggle="tooltip", data-placement="top", data-html="true", data-original-title="{{node | geoTooltip}}") {{node.info.name}}
|
|
|
|
span.small ({{node.info.ip}})
|
|
|
|
a.small(href="https://github.com/ethereum/wiki/wiki/Network-Status#updating", target="_blank", data-toggle="tooltip", data-placement="top", data-html="true", data-original-title="Netstats client needs update.<br>Click this icon for instructions.", class="{{ node.info | nodeClientClass : currentApiVersion }}")
|
|
|
|
i.icon-warning-o
|
2015-07-30 13:49:25 +02:00
|
|
|
td.hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
div.small(ng-bind-html="node.info.node | nodeVersion")
|
|
|
|
td(class="{{ node.readable.latencyClass }}")
|
|
|
|
span.small {{ node.readable.latency }}
|
2015-07-21 18:16:35 +02:00
|
|
|
//- td(class="{{ node.stats.peers | peerClass : node.stats.active }}", style="padding-left: 11px;") {{node.stats.peers}}
|
2015-07-14 21:37:23 +02:00
|
|
|
td(class="{{ node.stats | blockClass : bestBlock }}")
|
|
|
|
span(class="{{ node.readable.forkMessage ? node.readable.forkClass : '' }}") {{'#'}}{{ node.stats.block.number | number }}
|
|
|
|
a.small(data-toggle="tooltip", data-placement="top", data-html="true", data-original-title="{{ node.readable.forkMessage }}", class="{{ node.readable.forkClass }}")
|
|
|
|
i.icon-warning-o
|
2015-07-30 17:00:18 +02:00
|
|
|
td(class="{{ node.stats | blockClass : bestBlock }}").hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
span.small {{node.stats.block.hash | hashFilter}}
|
2015-07-30 13:49:25 +02:00
|
|
|
td(class="{{ node.stats | blockClass : bestBlock }}").hidden-xs
|
2015-07-14 21:37:23 +02:00
|
|
|
span.small {{node.stats.block.totalDifficulty | number}}
|
|
|
|
td(class="{{ node.stats.block.received | timeClass : node.stats.active }}") {{node.stats.block.received | blockTimeFilter }}
|
|
|
|
td(class="{{ node.stats | propagationTimeClass : bestBlock }}")
|
|
|
|
div.propagationBox
|
|
|
|
span {{node.stats.block.propagation | blockPropagationFilter}}
|
2015-07-21 18:16:35 +02:00
|
|
|
//- td.peerPropagationChart(class="{{node.id}}")
|
2015-07-14 21:37:23 +02:00
|
|
|
nodepropagchart(data="{{node.history.join(',')}}")
|
2015-07-21 18:16:35 +02:00
|
|
|
//- td(class="{{ node.stats | propagationNodeAvgTimeClass : bestBlock }}") {{ node.stats | blockPropagationAvgFilter : bestBlock }}
|