You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
914 B

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