1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-29 16:04:32 +00:00

Address page fixed

This commit is contained in:
xcps 2018-02-11 04:19:51 +05:00
parent 887c852b55
commit bdf288c91f
2 changed files with 10 additions and 8 deletions

View File

@ -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;

View File

@ -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