Ethereum network status dashboard for PoW and PoA networks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ethstats-server/views/index.jade

145 lines
6.3 KiB

10 years ago
extends layout
block content
10 years ago
div.container-fluid(ng-controller='StatsCtrl')
10 years ago
div.row(ng-cloak)
div.col-xs-12
10 years ago
//- div.col-sm-12
//- h1= title
//- p Welcome to #{title}
10 years ago
10 years ago
//- div.clearfix
10 years ago
10 years ago
div.col-xs-2.stat-holder
div.row.big-info.nodesactive(class="{{ nodesActive | nodesActiveClass : nodesTotal }}")
10 years ago
div.pull-left.icon-full-width
i.icon-node
10 years ago
div.pull-left
10 years ago
span.small-title active nodes
span.big-details {{nodesActive}}/{{nodesTotal}}
10 years ago
div.clearfix
10 years ago
div.col-xs-2.stat-holder
div.row.big-info.uptime(class="{{ upTimeTotal | upTimeClass }}")
div.pull-left.icon-full-width
i.icon-bulb
div.pull-left
span.small-title up-time
span.big-details {{ upTimeTotal | upTimeFilter }}
div.clearfix
10 years ago
div.col-xs-2.stat-holder
div.row.big-info.difficulty.text-info
div.pull-left.icon-full-width
i.icon-difficulty
div.pull-left
span.small-title difficulty
span.big-details {{ lastDifficulty }}
div.clearfix
10 years ago
div.col-xs-2.stat-holder
10 years ago
div.row.big-info.bestblock.text-info
div.pull-left.icon-full-width
i.icon-block
div.pull-left
span.small-title best block
span.big-details {{"#" + bestBlock}}
10 years ago
div.clearfix
10 years ago
div.col-xs-2.stat-holder
10 years ago
div.row.big-info.blocktime(class="{{ lastBlock | timeClass }}")
10 years ago
div.pull-left.icon-full-width
i.icon-time
div.pull-left
span.small-title last block
span.big-details {{ lastBlock | blockTimeFilter }}
10 years ago
div.clearfix
10 years ago
div.col-xs-2.stat-holder
div.row.big-info.avgblocktime(class="{{ avgBlockTime | timeClass }}")
10 years ago
div.pull-left.icon-full-width
i.icon-gas
10 years ago
div.pull-left
span.small-title avg block time
span.big-details {{ avgBlockTime | avgTimeFilter }}
10 years ago
div.clearfix
div.clearfix
div.col-xs-12
div.row
div.col-xs-8(style="padding-top: 30px;")
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title block time
span.big-details.spark-blocktimes
10 years ago
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title difficulty
span.big-details.spark-difficulty
10 years ago
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title transactions
span.big-details.spark-transactions
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title gas spending
span.big-details.spark-gasspending
//- div.clearfix
div.col-xs-4
div.col-xs-12
nodemap#mapHolder(data="map")
10 years ago
div.clearfix
div.col-xs-12
//- h1 Nodes in detail
10 years ago
table.table.table-striped
thead
tr.text-info
th
10 years ago
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node")
10 years ago
th
10 years ago
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type")
th.th-latency
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency")
10 years ago
th
10 years ago
i.icon-mining(data-toggle="tooltip", data-placement="top", title="Is mining")
th
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers")
th
i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions")
10 years ago
th
10 years ago
i.icon-block(data-toggle="tooltip", data-placement="top", title="Last node block")
10 years ago
th.hidden-sm.hidden-xs  
th
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions")
10 years ago
th
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time")
10 years ago
th
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time")
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time")
10 years ago
tbody
10 years ago
tr(ng-repeat='node in nodes', class="{{ node.stats | mainClass : bestBlock }}")
td(rel="{{node.id}}")
span(data-toggle="tooltip", data-placement="top", data-original-title="{{node.geo | geoTooltip}}") {{node.info.name}}
span.small &nbsp({{node.info.ip}})
td
div.small(ng-bind-html="node.info.node | nodeVersion")
//- div.small {{node.info.os}}, {{node.info.os_v}}
td.small(class="{{ node.stats | latencyClass }}") {{node.stats | latencyFilter}}
td(class="{{ node.stats.mining | miningClass }}")
i.small(class="{{ node.stats.mining | miningIconClass }}")
td(class="{{ node.stats.peers | peerClass }}", style="padding-left: 18px;") {{node.stats.peers}}
td(style="padding-left: 18px;") {{node.stats.pending}}
td(class="{{ node.stats.block.number | blockClass : bestBlock }}") {{'#' + node.stats.block.number}}
td(class="{{ node.stats.block.number | blockClass : bestBlock }}").hidden-sm.hidden-xs
span.small {{node.stats.block.hash | hashFilter}}
//- div.small Difficulty: {{node.stats.block.difficulty | gasFilter}} | Gas used: {{node.stats.block.gasUsed | gasFilter}} | Min gas price: {{node.stats.block.minGasPrice | gasFilter}} | Gas limit: {{node.stats.block.gasLimit | gasFilter}}
10 years ago
td(style="padding-left: 18px;") {{node.stats.block.transactions.length || 0}}
td(class="{{ node.stats.block.timestamp | timeClass }}") {{node.stats.block.received | blockTimeFilter }}
td(class="{{ node.stats.block.received | propagationTimeClass : lastBlock }}") {{node.stats.block.received | blockPropagationFilter : lastBlock}}
td(class="{{ node.stats.uptime | upTimeClass }}") {{ node.stats.uptime | upTimeFilter }}