mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-03-09 20:11:13 +00:00
Display block time on transaction page
This commit is contained in:
parent
21591141b3
commit
92f5d7a1bc
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
config/config.json
|
config/config.json
|
||||||
|
todo
|
||||||
|
@ -8,6 +8,10 @@ body {
|
|||||||
margin: 0 auto 1em;
|
margin: 0 auto 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table td {
|
||||||
|
padding-right: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #a7393d;
|
color: #a7393d;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ router.get('/:txid', async function(req, res, next) {
|
|||||||
txid,
|
txid,
|
||||||
},
|
},
|
||||||
include: [{
|
include: [{
|
||||||
attributes: ['hash'],
|
attributes: ['hash', 'time'],
|
||||||
model: models.Block,
|
model: models.Block,
|
||||||
},{
|
},{
|
||||||
model: models.Vout,
|
model: models.Vout,
|
||||||
@ -36,6 +36,7 @@ router.get('/:txid', async function(req, res, next) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
transaction.blockTime = transaction.Block.time.toUTCString();
|
||||||
res.render('transaction', {
|
res.render('transaction', {
|
||||||
transaction,
|
transaction,
|
||||||
vouts,
|
vouts,
|
||||||
|
@ -11,6 +11,9 @@ block content
|
|||||||
td Block
|
td Block
|
||||||
td
|
td
|
||||||
a(href='/block/#{transaction.Block.hash}/') #{transaction.Block.hash}
|
a(href='/block/#{transaction.Block.hash}/') #{transaction.Block.hash}
|
||||||
|
tr
|
||||||
|
td Block time
|
||||||
|
td #{transaction.blockTime}
|
||||||
|
|
||||||
h3 In
|
h3 In
|
||||||
if transaction.txtx.length
|
if transaction.txtx.length
|
||||||
|
Loading…
x
Reference in New Issue
Block a user