mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-01-29 16:04:32 +00:00
Address page fixed
This commit is contained in:
parent
887c852b55
commit
bdf288c91f
@ -26,6 +26,7 @@ router.get('/:address/:offset*?', async function(req, res, next) {
|
||||
res.status(404).render('404');
|
||||
return;
|
||||
}
|
||||
|
||||
const limit = 30;
|
||||
const paramPage = parseInt(req.params.offset);
|
||||
const page = isNaN(paramPage) || paramPage < 1 ? 1 : paramPage;
|
||||
|
@ -6,14 +6,15 @@ block content
|
||||
|
||||
h3 Transactions
|
||||
table
|
||||
each vout in address.Vouts
|
||||
tr
|
||||
if vout.Transactions[0].TransactionVouts.direction == 1
|
||||
td OUT
|
||||
else
|
||||
td IN
|
||||
td
|
||||
a(href=`/transaction/${vout.Transactions[0].txid}/`) #{vout.Transactions[0].txid}
|
||||
each vout in address.Vouts
|
||||
each transaction in vout.Transactions
|
||||
tr
|
||||
if transaction.TransactionVouts.direction == 1
|
||||
td INCOME
|
||||
else
|
||||
td OUTCOME
|
||||
td
|
||||
a(href=`/transaction/${transaction.txid}/`) #{transaction.txid}
|
||||
div.pagination
|
||||
if prevpage
|
||||
a(href=`/address/#{address}/${prevpage}/`, style='float:left') Back
|
||||
|
Loading…
x
Reference in New Issue
Block a user