decreased block hash string length

This commit is contained in:
cubedro 2015-04-06 16:13:49 +03:00
parent f835ecf348
commit 68e7f66f3d
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ table td {
} }
.th-blockhash { .th-blockhash {
width: 460px; width: 140px;
} }
.th-blocktime { .th-blocktime {

View File

@ -66,7 +66,7 @@ angular.module('netStatsApp.filters', [])
}) })
.filter('hashFilter', function() { .filter('hashFilter', function() {
return function(hash) { return function(hash) {
return hash.substr(0, 6) + '...' + hash.substr(58, 6); return hash.substr(0, 8) + '...' + hash.substr(56, 8);
} }
}) })
.filter('timeClass', function() { .filter('timeClass', function() {

View File

@ -146,7 +146,7 @@ block content
td(style="padding-left: 15px;") {{node.stats.pending}} td(style="padding-left: 15px;") {{node.stats.pending}}
td(class="{{ node.stats.block.number | blockClass : bestBlock }}") {{'#' + node.stats.block.number}} td(class="{{ node.stats.block.number | blockClass : bestBlock }}") {{'#' + node.stats.block.number}}
td(class="{{ node.stats.block.number | blockClass : bestBlock }}") td(class="{{ node.stats.block.number | blockClass : bestBlock }}")
span.small {{node.stats.block.hash}} span.small {{node.stats.block.hash | hashFilter}}
td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}} td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}}
td(class="{{ node.stats.block.received | timeClass }}") {{node.stats.block.received | blockTimeFilter }} td(class="{{ node.stats.block.received | timeClass }}") {{node.stats.block.received | blockTimeFilter }}
td(class="{{ node.stats.block | propagationTimeClass : bestBlock }}") {{node.stats.block.propagation | blockPropagationFilter}} td(class="{{ node.stats.block | propagationTimeClass : bestBlock }}") {{node.stats.block.propagation | blockPropagationFilter}}