ethstats-server/views/index.jade

145 lines
6.3 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-02 23:21:18 +02:00
div.col-xs-12
2015-03-05 16:34:10 +01:00
//- div.col-sm-12
//- h1= title
2015-02-18 07:06:41 +01:00
//- p Welcome to #{title}
2015-01-20 19:29:31 +01:00
2015-03-05 16:34:10 +01:00
//- div.clearfix
2015-01-20 19:29:31 +01:00
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-02-05 00:30:16 +01:00
div.row.big-info.nodesactive(class="{{ nodesActive | nodesActiveClass : nodesTotal }}")
2015-01-20 19:29:31 +01:00
div.pull-left.icon-full-width
2015-03-05 16:43:04 +01:00
i.icon-node
2015-01-20 19:29:31 +01:00
div.pull-left
2015-02-05 04:08:08 +01:00
span.small-title active nodes
2015-01-28 23:38:54 +01:00
span.big-details {{nodesActive}}/{{nodesTotal}}
2015-01-20 19:29:31 +01:00
div.clearfix
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-03-05 16:43:04 +01:00
div.row.big-info.uptime(class="{{ upTimeTotal | upTimeClass }}")
2015-02-18 08:54:04 +01:00
div.pull-left.icon-full-width
2015-03-05 16:43:04 +01:00
i.icon-bulb
2015-02-18 08:54:04 +01:00
div.pull-left
2015-03-05 16:43:04 +01:00
span.small-title up-time
span.big-details {{ upTimeTotal | upTimeFilter }}
2015-02-18 08:54:04 +01:00
div.clearfix
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-03-05 16:43:04 +01:00
div.row.big-info.difficulty.text-info
2015-02-18 08:54:04 +01:00
div.pull-left.icon-full-width
2015-03-05 16:43:04 +01:00
i.icon-difficulty
2015-02-18 08:54:04 +01:00
div.pull-left
2015-03-05 16:43:04 +01:00
span.small-title difficulty
span.big-details {{ lastDifficulty }}
2015-02-18 08:54:04 +01:00
div.clearfix
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-01-20 19:29:31 +01:00
div.row.big-info.bestblock.text-info
div.pull-left.icon-full-width
i.icon-block
div.pull-left
span.small-title best block
2015-01-28 23:38:54 +01:00
span.big-details {{"#" + bestBlock}}
2015-01-20 19:29:31 +01:00
div.clearfix
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-02-05 02:33:58 +01:00
div.row.big-info.blocktime(class="{{ lastBlock | timeClass }}")
2015-01-20 19:29:31 +01:00
div.pull-left.icon-full-width
i.icon-time
div.pull-left
2015-02-18 10:04:37 +01:00
span.small-title last block
2015-02-18 09:57:45 +01:00
span.big-details {{ lastBlock | blockTimeFilter }}
2015-01-20 19:29:31 +01:00
div.clearfix
2015-03-05 16:34:10 +01:00
div.col-xs-2.stat-holder
2015-02-18 08:54:04 +01:00
div.row.big-info.avgblocktime(class="{{ avgBlockTime | timeClass }}")
2015-01-20 19:29:31 +01:00
div.pull-left.icon-full-width
2015-02-18 08:54:04 +01:00
i.icon-gas
2015-01-20 19:29:31 +01:00
div.pull-left
2015-02-18 08:54:04 +01:00
span.small-title avg block time
span.big-details {{ avgBlockTime | avgTimeFilter }}
2015-01-20 19:29:31 +01:00
div.clearfix
div.clearfix
2015-03-28 00:27:40 +01:00
div.col-xs-12
div.row
2015-04-02 23:21:18 +02:00
div.col-xs-8(style="padding-top: 30px;")
2015-03-28 00:27:40 +01:00
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title block time
2015-04-04 21:35:45 +02:00
span.big-details.spark-blocktimes
2015-03-06 22:22:03 +01:00
2015-03-28 00:27:40 +01:00
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title difficulty
2015-04-04 21:35:45 +02:00
span.big-details.spark-difficulty
2015-03-06 22:22:03 +01:00
2015-03-28 00:27:40 +01:00
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title transactions
2015-04-04 21:35:45 +02:00
span.big-details.spark-transactions
2015-03-28 00:27:40 +01:00
2015-03-28 19:07:15 +01:00
div.col-xs-3.stat-holder
div.row.big-info.chart
span.small-title gas spending
2015-04-04 21:35:45 +02:00
span.big-details.spark-gasspending
2015-03-28 19:07:15 +01:00
2015-03-28 00:27:40 +01:00
//- div.clearfix
2015-04-02 23:21:18 +02:00
div.col-xs-4
2015-03-28 00:27:40 +01:00
div.col-xs-12
nodemap#mapHolder(data="map")
2015-01-20 19:29:31 +01:00
div.clearfix
2015-04-02 23:21:18 +02:00
div.col-xs-12
2015-03-05 16:43:04 +01:00
//- h1 Nodes in detail
2015-01-20 19:29:31 +01:00
table.table.table-striped
thead
tr.text-info
th
2015-02-05 02:47:24 +01:00
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node")
2015-01-20 19:29:31 +01:00
th
2015-02-05 02:47:24 +01:00
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type")
2015-04-04 01:57:57 +02:00
th.th-latency
2015-03-05 16:43:04 +01:00
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency")
2015-01-20 19:29:31 +01:00
th
2015-02-05 02:47:24 +01:00
i.icon-mining(data-toggle="tooltip", data-placement="top", title="Is mining")
2015-02-18 09:57:45 +01:00
th
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers")
2015-02-18 10:56:48 +01:00
th
i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions")
2015-01-20 19:29:31 +01:00
th
2015-02-05 02:47:24 +01:00
i.icon-block(data-toggle="tooltip", data-placement="top", title="Last node block")
2015-01-20 19:29:31 +01:00
th.hidden-sm.hidden-xs  
2015-02-18 10:56:48 +01:00
th
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions")
2015-01-20 19:29:31 +01:00
th
2015-02-19 18:34:20 +01:00
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time")
2015-01-20 19:29:31 +01:00
th
2015-03-05 16:43:04 +01:00
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time")
2015-02-23 18:10:17 +01:00
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time")
2015-01-20 19:29:31 +01:00
tbody
2015-01-30 22:37:38 +01:00
tr(ng-repeat='node in nodes', class="{{ node.stats | mainClass : bestBlock }}")
2015-02-05 09:27:12 +01:00
td(rel="{{node.id}}")
2015-02-18 09:57:45 +01:00
span(data-toggle="tooltip", data-placement="top", data-original-title="{{node.geo | geoTooltip}}") {{node.info.name}}
span.small &nbsp({{node.info.ip}})
2015-02-18 08:54:04 +01:00
td
2015-02-17 16:29:26 +01:00
div.small(ng-bind-html="node.info.node | nodeVersion")
2015-02-18 07:06:41 +01:00
//- div.small {{node.info.os}}, {{node.info.os_v}}
2015-03-27 12:35:23 +01:00
td.small(class="{{ node.stats | latencyClass }}") {{node.stats | latencyFilter}}
2015-01-29 17:50:16 +01:00
td(class="{{ node.stats.mining | miningClass }}")
2015-02-23 14:57:41 +01:00
i.small(class="{{ node.stats.mining | miningIconClass }}")
2015-02-18 10:56:48 +01:00
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
2015-02-19 18:34:20 +01:00
span.small {{node.stats.block.hash | hashFilter}}
2015-02-18 08:54:04 +01:00
//- 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}}
2015-03-27 20:05:43 +01:00
td(style="padding-left: 18px;") {{node.stats.block.transactions.length || 0}}
2015-04-04 21:35:45 +02:00
td(class="{{ node.stats.block.timestamp | timeClass }}") {{node.stats.block.received | blockTimeFilter }}
2015-04-04 21:46:59 +02:00
td(class="{{ node.stats.block.received | propagationTimeClass : node.stats.block.firstarrived }}") {{node.stats.block.received | blockPropagationFilter : node.stats.block.firstarrived}}
2015-02-17 06:12:44 +01:00
td(class="{{ node.stats.uptime | upTimeClass }}") {{ node.stats.uptime | upTimeFilter }}