|
@ -2,19 +2,21 @@ table(class="table table-striped") |
|
|
thead |
|
|
thead |
|
|
tr |
|
|
tr |
|
|
th |
|
|
th |
|
|
th Height |
|
|
th(class="data-header") Height |
|
|
th Timestamp (utc) |
|
|
th(class="data-header") Timestamp (utc) |
|
|
th Age |
|
|
th(class="data-header") Age |
|
|
th Transactions |
|
|
th(class="data-header") Transactions |
|
|
th Size (bytes) |
|
|
th(class="data-header") Size (bytes) |
|
|
tbody |
|
|
tbody |
|
|
each block, blockIndex in blocks |
|
|
each block, blockIndex in blocks |
|
|
if (block) |
|
|
if (block) |
|
|
tr |
|
|
tr |
|
|
th #{blockIndex + blockOffset + 1} |
|
|
th #{(blockIndex + blockOffset + 1).toLocaleString()} |
|
|
td |
|
|
td(class="data-cell") |
|
|
a(href=("/block-height/" + block.height)) #{block.height.toLocaleString()} |
|
|
a(href=("/block-height/" + block.height)) #{block.height.toLocaleString()} |
|
|
td #{moment.utc(new Date(parseInt(block.time) * 1000)).format("Y-MM-DD HH:mm:ss")} |
|
|
td(class="data-cell") #{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.toLocaleString()} |
|
|
- var timeAgo = moment.duration(moment.utc(new Date()).diff(moment.utc(new Date(parseInt(block.time) * 1000)))); |
|
|
td #{block.size.toLocaleString()} |
|
|
td(class="data-cell") #{timeAgo.format()} |
|
|
|
|
|
td(class="data-cell") #{block.tx.length.toLocaleString()} |
|
|
|
|
|
td(class="data-cell") #{block.size.toLocaleString()} |