From 1aa87c2d7faf9704b13a22224535956a7da5cca5 Mon Sep 17 00:00:00 2001 From: cubedro Date: Wed, 27 May 2015 09:12:35 +0300 Subject: [PATCH] fixed jade warnings --- dist/index.html | 2 +- views/index.jade | 11 ++++++----- views/layout.jade | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/index.html b/dist/index.html index 7e32983..0bcaf48 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -Ethereum Network Status
best block{{'#'}}{{ bestBlock | number}}
uncles  (current / last 50){{ bestStats.block.uncles.length }}/{{ uncleCount }}
last block{{ lastBlock | blockTimeFilter }}
avg block time{{ avgBlockTime | avgTimeFilter }}
avg network hashrate
difficulty{{ lastDifficulty | number }}
active nodes{{nodesActive}}/{{nodesTotal}}
gas price{{ bestStats.gasPrice.toString() | gasPriceFilter }}
page latency{{latency}} ms
uptime{{ upTimeTotal | upTimeFilter }}
block time
difficulty
block propagation
last blocks miners
{{miner.blocks}}
{{miner.miner | minerNameFilter : miner.name}}
uncle count  (25 blocks per bar)
transactions
gas spending
 
{{node.info.name}} ({{node.info.ip}})
{{node.stats | latencyFilter}}{{node.stats.peers}}{{node.stats.pending}}{{'#'}}{{ node.stats.block.number | number }}{{node.stats.block.hash | hashFilter}}{{node.stats.block.totalDifficulty | number}}{{node.stats.block.transactions.length || 0}}{{node.stats.block.uncles.length || 0}}{{node.stats.block.received | blockTimeFilter }}
{{node.stats.block.propagation | blockPropagationFilter}}
{{ node.stats | blockPropagationAvgFilter : bestBlock }}{{ node.stats.uptime | upTimeFilter }}
\ No newline at end of file +Ethereum Network Status
best block{{'#'}}{{ bestBlock | number}}
uncles (current / last 50){{ bestStats.block.uncles.length }}/{{ uncleCount }}
last block{{ lastBlock | blockTimeFilter }}
avg block time{{ avgBlockTime | avgTimeFilter }}
avg network hashrate
difficulty{{ lastDifficulty | number }}
active nodes{{nodesActive}}/{{nodesTotal}}
gas price{{ bestStats.gasPrice.toString() | gasPriceFilter }}
page latency{{latency}} ms
uptime{{ upTimeTotal | upTimeFilter }}
block time
difficulty
block propagation
last blocks miners
{{miner.blocks}}
{{miner.miner | minerNameFilter : miner.name}}
uncle count (25 blocks per bar)
transactions
gas spending
 
{{node.info.name}} ({{node.info.ip}})
{{node.stats | latencyFilter}}{{node.stats.peers}}{{node.stats.pending}}{{'#'}}{{ node.stats.block.number | number }}{{node.stats.block.hash | hashFilter}}{{node.stats.block.totalDifficulty | number}}{{node.stats.block.transactions.length || 0}}{{node.stats.block.uncles.length || 0}}{{node.stats.block.received | blockTimeFilter }}
{{node.stats.block.propagation | blockPropagationFilter}}
{{ node.stats | blockPropagationAvgFilter : bestBlock }}{{ node.stats.uptime | upTimeFilter }}
\ No newline at end of file diff --git a/views/index.jade b/views/index.jade index 7fd88f4..4781fb6 100644 --- a/views/index.jade +++ b/views/index.jade @@ -1,4 +1,5 @@ -extends layout +//- index.jade +extends ./layout.jade block content div.container-fluid(ng-controller='StatsCtrl') @@ -16,7 +17,7 @@ block content div.pull-left.icon-full-width i.icon-uncle div.big-details-holder - span.small-title uncles #[ ] + span.small-title uncles  span.small (current / last 50) span.big-details {{ bestStats.block.uncles.length }}/{{ uncleCount }} div.clearfix @@ -121,7 +122,7 @@ block content div.col-xs-3.stat-holder div.big-info.chart.text-info //- i.icon-uncle - span.small-title uncle count #[ ] + span.small-title uncle count  span.small (25 blocks per bar) //- span.small-value {{ bestStats.block.uncles.length }}/{{ uncleCount }} sparkchart.big-details.spark-uncles(data="{{uncleCountChart.join(',')}}") @@ -166,7 +167,7 @@ block content i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions", ng-click="orderTable(['-stats.pending'], false)") th i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="orderTable(['-stats.block.number', 'stats.block.propagation'], false)") - th.th-blockhash #[ ] + th.th-blockhash  th.th-blockhash i.icon-difficulty(data-toggle="tooltip", data-placement="top", title="Total difficulty", ng-click="orderTable(['-stats.block.totalDifficulty'], false)") th @@ -188,7 +189,7 @@ block content 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") 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}}) + 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.
Click this icon for instructions.", class="{{ node.info | nodeClientClass : currentApiVersion }}") i.icon-warning-o td diff --git a/views/layout.jade b/views/layout.jade index 2b3ec88..4822caa 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -1,3 +1,4 @@ +//- layout.jade doctype html html(ng-app="netStatsApp") head