Browse Source

show "age" in blocks lists

fix-133-memory-crash
Dan Janosik 8 years ago
parent
commit
2c8240c00f
  1. 2
      views/includes/blocks-list.pug

2
views/includes/blocks-list.pug

@ -4,6 +4,7 @@ table(class="table table-striped")
th th
th Height th Height
th Timestamp (utc) th Timestamp (utc)
th Age
th Transactions th Transactions
th Size (bytes) th Size (bytes)
tbody tbody
@ -13,5 +14,6 @@ table(class="table table-striped")
td td
a(href=("/block-height/" + block.height)) #{block.height} a(href=("/block-height/" + block.height)) #{block.height}
td #{moment.utc(new Date(parseInt(block.time) * 1000)).format("Y-MM-DD HH:mm:ss")} td #{moment.utc(new Date(parseInt(block.time) * 1000)).format("Y-MM-DD HH:mm:ss")}
td #{moment.utc(new Date(parseInt(block.time) * 1000)).fromNow(true)}
td #{block.tx.length.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")} td #{block.tx.length.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
td #{block.size.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")} td #{block.size.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
Loading…
Cancel
Save