added more order to every column

pull/5/head
cubedro 10 years ago
parent 5be6c2192f
commit a5ee09ee69
  1. 22
      views/index.jade

@ -106,28 +106,28 @@ block content
thead
tr.text-info
th
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="predicate = 'info.name'; reverse=false")
i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="predicate = '-info.name'; reverse=!reverse")
th.th-nodename
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type")
i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type", ng-click="predicate = 'info.node'; reverse=false")
th.th-latency
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency")
i.icon-clock(data-toggle="tooltip", data-placement="top", title="Node latency", ng-click="predicate = 'stats.latency'; reverse=false")
th
i.icon-mining(data-toggle="tooltip", data-placement="top", title="Is mining")
i.icon-mining(data-toggle="tooltip", data-placement="top", title="Is mining", ng-click="predicate = '-stats.mining'; reverse=false")
th
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers")
i.icon-group(data-toggle="tooltip", data-placement="top", title="Peers", ng-click="predicate = '-stats.peers'; reverse=false")
th
i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions")
i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions", ng-click="predicate = '-stats.pending'; reverse=false")
th
i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="predicate = ['-stats.block.number', 'stats.block.propagation']; reverse=false")
th.th-blockhash  
th
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions")
i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions", ng-click="predicate = '-stats.block.transactions.length'; reverse=false")
th.th-blocktime
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time")
i.icon-time(data-toggle="tooltip", data-placement="top", title="Last block time", ng-click="predicate = '-stats.block.received'; reverse=false")
th
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time")
i.icon-gas(data-toggle="tooltip", data-placement="top", title="Propagation time", ng-click="predicate = '-stats.block.propagation'; reverse=false")
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time")
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="predicate = '-stats.uptime'; reverse=false")
tbody
tr(ng-repeat='node in nodes | orderBy:predicate:reverse', class="{{ node.stats | mainClass : bestBlock }}")
td(rel="{{node.id}}")
@ -145,6 +145,6 @@ block content
td(class="{{ node.stats.block.number | blockClass : bestBlock }}")
span.small {{node.stats.block.hash}}
td(style="padding-left: 14px;") {{node.stats.block.transactions.length || 0}}
td(class="{{ node.stats.block.timestamp | timeClass }}") {{node.stats.block.received | blockTimeFilter }}
td(class="{{ node.stats.block.received | timeClass }}") {{node.stats.block.received | blockTimeFilter }}
td(class="{{ node.stats.block.propagation | propagationTimeClass }}") {{node.stats.block.propagation | blockPropagationFilter}}
td(class="{{ node.stats.uptime | upTimeClass }}") {{ node.stats.uptime | upTimeFilter }}

Loading…
Cancel
Save