1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-31 00:44:24 +00:00
gostexplr/views/block.jade

31 lines
692 B
Plaintext
Raw Normal View History

2018-02-03 21:14:56 +05:00
extends layout
block content
h3 Block
table
each key in Object.keys(block)
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}