2018-02-03 21:14:56 +05:00
|
|
|
extends layout
|
|
|
|
|
|
|
|
block content
|
|
|
|
h3 Block
|
|
|
|
|
|
|
|
table
|
2018-02-05 10:34:16 +05:00
|
|
|
each key in Object.keys(block)
|
2018-02-05 01:10:15 +05:00
|
|
|
if (key === 'nextblockhash')
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td
|
|
|
|
a(href='/block/#{block.nextblockhash}/') #{block.nextblockhash}
|
|
|
|
-continue
|
|
|
|
if (key === 'previousblockhash')
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td
|
|
|
|
a(href='/block/#{block.previousblockhash}/') #{block.previousblockhash}
|
|
|
|
-continue
|
2018-02-03 21:14:56 +05:00
|
|
|
if (key === 'Transactions')
|
|
|
|
-continue
|
|
|
|
tr
|
|
|
|
td.capitalize #{key}
|
|
|
|
td #{block[key]}
|
|
|
|
|
|
|
|
h3 Transactions
|
|
|
|
each tx in block.Transactions
|
|
|
|
div
|
|
|
|
a(href='/transaction/#{tx.txid}/') #{tx.txid}
|
|
|
|
|