From 2c8240c00fa40b83b3197c7fb7b0d94783e6591e Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Sat, 22 Jul 2017 14:54:44 -0400 Subject: [PATCH] show "age" in blocks lists --- views/includes/blocks-list.pug | 2 ++ 1 file changed, 2 insertions(+) diff --git a/views/includes/blocks-list.pug b/views/includes/blocks-list.pug index 0794d39..3f98aeb 100644 --- a/views/includes/blocks-list.pug +++ b/views/includes/blocks-list.pug @@ -4,6 +4,7 @@ table(class="table table-striped") th th Height th Timestamp (utc) + th Age th Transactions th Size (bytes) tbody @@ -13,5 +14,6 @@ table(class="table table-striped") td 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)).fromNow(true)} td #{block.tx.length.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")} td #{block.size.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")} \ No newline at end of file