ethstats-server/views/index.jade

214 lines
11 KiB
Plaintext
Raw Normal View History

2014-12-03 04:08:49 +01:00
extends layout
block content
2015-01-20 19:29:31 +01:00
div.container-fluid(ng-controller='StatsCtrl')
2015-03-06 22:22:03 +01:00
div.row(ng-cloak)
2015-04-24 07:48:49 +02:00
div.col-xs-2.stat-holder
div.big-info.bestblock.text-info
div.pull-left.icon-full-width
i.icon-block
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-24 07:48:49 +02:00
span.small-title best block
span.big-details {{'#'}}{{ bestBlock | number}}
div.clearfix
2015-04-06 01:28:42 +02:00
div.col-xs-2.stat-holder
2015-04-24 07:48:49 +02:00
div.big-info.uncleCount.text-info
2015-04-06 01:28:42 +02:00
div.pull-left.icon-full-width
2015-04-24 07:48:49 +02:00
i.icon-uncle
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-24 07:48:49 +02:00
span.small-title uncles #[ ]
span.small (current / last 50)
2015-04-24 10:44:21 +02:00
span.big-details {{ bestStats.block.uncles.length }}/{{ uncleCount }}
2015-04-06 01:28:42 +02:00
div.clearfix
div.col-xs-2.stat-holder
2015-04-09 00:48:27 +02:00
div.big-info.blocktime(class="{{ lastBlock | timeClass : true }}")
2015-04-06 01:28:42 +02:00
div.pull-left.icon-full-width
i.icon-time
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-06 01:28:42 +02:00
span.small-title last block
span.big-details {{ lastBlock | blockTimeFilter }}
div.clearfix
div.col-xs-2.stat-holder
2015-04-06 12:47:11 +02:00
div.big-info.avgblocktime(class="{{ avgBlockTime | avgTimeClass }}")
2015-04-06 01:28:42 +02:00
div.pull-left.icon-full-width
i.icon-gas
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-06 01:28:42 +02:00
span.small-title avg block time
span.big-details {{ avgBlockTime | avgTimeFilter }}
div.clearfix
2015-04-28 13:04:39 +02:00
div.col-xs-2.stat-holder
div.big-info.difficulty.text-orange
div.pull-left.icon-full-width
i.icon-hashrate
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-28 13:04:39 +02:00
span.small-title avg network hashrate
2015-04-29 11:39:51 +02:00
span.big-details(ng-bind-html="avgHashrate | networkHashrateFilter")
2015-04-28 13:04:39 +02:00
div.clearfix
2015-04-28 14:22:01 +02:00
div.col-xs-2.stat-holder
div.big-info.difficulty.text-danger
div.pull-left.icon-full-width
i.icon-difficulty
2015-04-29 07:49:43 +02:00
div.big-details-holder
2015-04-28 14:22:01 +02:00
span.small-title difficulty
2015-05-14 23:02:38 +02:00
span.big-details
span.small-hash {{ lastDifficulty | number }}
2015-04-28 14:22:01 +02:00
div.clearfix
2015-04-06 01:28:42 +02:00
div.clearfix
2015-01-20 19:29:31 +01:00
2015-04-24 10:44:21 +02:00
2015-04-17 12:19:53 +02:00
div.row(ng-cloak)
2015-04-24 10:44:21 +02:00
div.col-xs-8.stats-boxes(style="padding-top: 0px;")
2015-04-24 10:57:37 +02:00
div.row.second-row
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder.box
2015-04-28 14:17:35 +02:00
div.active-nodes(class="{{ nodesActive | nodesActiveClass : nodesTotal }}")
i.icon-node
span.small-title active nodes
span.small-value {{nodesActive}}/{{nodesTotal}}
//- div.col-xs-3.stat-holder.box
//- div.difficulty.text-info
//- i.icon-difficulty
//- span.small-title difficulty
//- span.small-value {{ lastDifficulty | number }}
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder.box
div.gasprice.text-info
2015-04-24 10:57:37 +02:00
i.icon-gasprice
2015-04-24 10:44:21 +02:00
span.small-title gas price
span.small-value {{ bestStats.gasPrice.toString() | gasPriceFilter }}
div.col-xs-3.stat-holder.box
div.page-latency(class="{{ {active: true, latency: latency} | latencyClass }}")
2015-04-24 10:57:37 +02:00
i.icon-clock
2015-04-24 10:44:21 +02:00
span.small-title page latency
span.small-value {{latency}} ms
div.col-xs-3.stat-holder.box
div.uptime(class="{{ upTimeTotal | upTimeClass : true }}")
i.icon-bulb
span.small-title uptime
span.small-value {{ upTimeTotal | upTimeFilter }}
2015-03-28 00:27:40 +01:00
div.row
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder
2015-04-28 14:17:35 +02:00
div.big-info.chart(class="{{ avgBlockTime | avgTimeClass }}")
//- i.icon-time
2015-04-06 01:28:42 +02:00
span.small-title block time
2015-04-28 14:22:01 +02:00
//- span.small-value {{ avgBlockTime | avgTimeFilter }}
2015-04-06 01:28:42 +02:00
span.big-details.spark-blocktimes
2015-03-06 22:22:03 +01:00
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder
2015-04-28 14:17:35 +02:00
div.big-info.chart.text-info
//- i.icon-difficulty
2015-04-06 01:28:42 +02:00
span.small-title difficulty
2015-04-28 14:22:01 +02:00
//- span.small-value {{ lastDifficulty | number }}
2015-04-06 01:28:42 +02:00
span.big-details.spark-difficulty
2015-03-06 22:22:03 +01:00
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder.xpull-right
2015-04-28 17:44:41 +02:00
div.big-info.chart.xdouble-chart(class="{{ blockPropagationAvg | propagationAvgTimeClass : true }}")
2015-04-28 14:17:35 +02:00
//- i.icon-gas
2015-04-23 15:17:31 +02:00
span.small-title block propagation
2015-04-29 12:14:18 +02:00
//- span.small-value {{ blockPropagationAvg | blockPropagationFilter : '' }}
2015-04-23 15:17:31 +02:00
histogram.big-details.d3-blockpropagation(data="blockPropagationChart")
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder.pull-right
div.big-info.chart.double-chart
span.small-title last blocks miners
div.blocks-holder(ng-repeat='miner in miners', data-toggle="tooltip", data-placement="right", title="{{miner.blocks}}")
div.block-count(class="{{miner.blocks | minerBlocksClass : 'text-'}}") {{miner.blocks}}
div.small-title-miner {{miner.miner | minerNameFilter : miner.name}}
div.block(ng-repeat="i in getNumber(miner.blocks) track by $index", class="{{miner.blocks | minerBlocksClass}}")
div.clearfix
div.col-xs-3.stat-holder
2015-04-28 14:17:35 +02:00
div.big-info.chart.text-info
//- i.icon-uncle
2015-04-24 05:37:52 +02:00
span.small-title uncle count #[ ]
span.small (25 blocks per bar)
2015-04-28 14:22:01 +02:00
//- span.small-value {{ bestStats.block.uncles.length }}/{{ uncleCount }}
2015-04-24 05:23:26 +02:00
span.big-details.spark-uncles
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder
2015-04-28 14:17:35 +02:00
div.big-info.chart.text-info
//- i.icon-uncle
2015-04-06 01:28:42 +02:00
span.small-title transactions
span.big-details.spark-transactions
2015-03-28 00:27:40 +01:00
2015-04-24 10:44:21 +02:00
div.col-xs-3.stat-holder
2015-04-28 14:17:35 +02:00
div.big-info.chart.text-info
//- i.icon-gasprice
2015-04-06 01:28:42 +02:00
span.small-title gas spending
span.big-details.spark-gasspending
2015-03-28 19:07:15 +01:00
2015-04-24 10:44:21 +02:00
2015-04-06 01:28:42 +02:00
2015-04-24 18:49:39 +02:00
div.col-xs-4.stat-holder.map-holder
2015-04-24 10:44:21 +02:00
//- div.col-xs-12
nodemap#mapHolder(data="map")
2015-01-20 19:29:31 +01:00
2015-04-24 10:57:37 +02:00
//- div.clearfix
2015-01-20 19:29:31 +01:00
2015-04-24 11:03:43 +02:00
div.row(ng-cloak, style="padding-top: 10px")
2015-04-24 10:57:37 +02:00
table.table.table-striped
thead
tr.text-info
2015-05-19 01:41:14 +02:00
th.th-nodecheck
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)")
2015-04-24 10:57:37 +02:00
th.th-nodename
2015-05-19 01:41:14 +02:00
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="orderTable(['info.name'], false)")
2015-04-24 10:57:37 +02:00
th.th-nodetype
2015-05-19 01:41:14 +02:00
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type", ng-click="orderTable(['info.node'], false)")
2015-04-24 10:57:37 +02:00
th.th-latency
2015-05-19 01:41:14 +02:00
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency", ng-click="orderTable(['stats.latency'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-mining(data-toggle="tooltip", data-placement="top", title="Is mining", ng-click="orderTable(['-stats.mining'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers", ng-click="orderTable(['-stats.peers'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions", ng-click="orderTable(['-stats.pending'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
2015-04-24 10:57:37 +02:00
th.th-blockhash #[ ]
2015-05-19 01:51:07 +02:00
th.th-blockhash
i.icon-difficulty(data-toggle="tooltip", data-placement="top", title="Total difficulty", ng-click="orderTable(['-stats.block.totalDifficulty'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions", ng-click="orderTable(['-stats.block.transactions.length'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-uncle(data-toggle="tooltip", data-placement="top", title="Uncles", ng-click="orderTable(['-stats.block.uncles.length'], false)")
2015-04-24 10:57:37 +02:00
th.th-blocktime
2015-05-19 01:41:14 +02:00
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="orderTable(['-stats.block.received'], false)")
2015-04-24 10:57:37 +02:00
th.th-peerPropagationTime
2015-05-19 01:41:14 +02:00
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)")
2015-04-24 10:57:37 +02:00
th.th-peerPropagationChart
2015-04-28 17:22:11 +02:00
th.th-peerPropagationAvg
2015-05-19 01:41:14 +02:00
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Average propagation time", ng-click="orderTable(['stats.propagationAvg'], false)")
2015-04-24 10:57:37 +02:00
th
2015-05-19 01:41:14 +02:00
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="orderTable(['-stats.uptime'], false)")
2015-04-24 10:57:37 +02:00
tbody(ng-cloak)
2015-05-19 01:41:14 +02:00
tr(ng-repeat='node in nodes | orderBy:predicate', class="{{ node.stats | mainClass : bestBlock }}")
td
i(ng-click="node.pinned = !node.pinned", class="{{ node.pinned | nodePinClass }}", data-toggle="tooltip", data-placement="right", data-original-title="Click to {{ node.pinned ? 'un' : '' }}pin")
2015-04-24 10:57:37 +02:00
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}})
2015-04-28 03:42:34 +02:00
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 }}")
2015-04-28 03:25:49 +02:00
i.icon-warning-o
2015-04-24 10:57:37 +02:00
td
div.small(ng-bind-html="node.info.node | nodeVersion")
td(class="{{ node.stats | latencyClass }}")
span.small {{node.stats | latencyFilter}}
2015-05-04 16:27:37 +02:00
td(class="{{ node.stats.mining | hashrateClass : node.stats.active }}", ng-bind-html="node.stats.hashrate | hashrateFilter : node.stats.mining")
2015-04-24 10:57:37 +02:00
td(class="{{ node.stats.peers | peerClass : node.stats.active }}", style="padding-left: 11px;") {{node.stats.peers}}
td(style="padding-left: 15px;") {{node.stats.pending}}
td(class="{{ node.stats | blockClass : bestBlock }}") {{'#'}}{{ node.stats.block.number | number }}
td(class="{{ node.stats | blockClass : bestBlock }}")
span.small {{node.stats.block.hash | hashFilter}}
2015-05-19 01:51:07 +02:00
td(class="{{ node.stats | blockClass : bestBlock }}")
span.small {{node.stats.block.totalDifficulty | number}}
2015-04-24 10:57:37 +02:00
td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}}
td(style="padding-left: 14px;") {{node.stats.block.uncles.length || 0}}
2015-05-07 23:58:02 +02:00
td(class="{{ node.stats.block.received | timeClass : node.stats.active }}") {{node.stats.block.received | blockTimeFilter }}
2015-04-24 10:57:37 +02:00
td(class="{{ node.stats | propagationTimeClass : bestBlock }}")
div.propagationBox
span {{node.stats.block.propagation | blockPropagationFilter}}
td.peerPropagationChart(class="{{node.id}}")
2015-05-05 09:23:55 +02:00
td(class="{{ node.stats | propagationNodeAvgTimeClass : bestBlock }}") {{ node.stats.propagationAvg | blockPropagationFilter : '' }}
2015-04-24 10:57:37 +02:00
td(class="{{ node.stats.uptime | upTimeClass : node.stats.active }}") {{ node.stats.uptime | upTimeFilter }}