Browse Source

Pretty html

master
xcps 6 years ago committed by R4SAS
parent
commit
ad830004d4
  1. 2
      app.js
  2. 1
      routes/address.js
  3. 2
      routes/transaction.js

2
app.js

@ -18,6 +18,8 @@ var app = express(); @@ -18,6 +18,8 @@ var app = express();
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'pug');
app.locals.pretty = true;
// uncomment after placing your favicon in /public
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
if (env === 'development') {

1
routes/address.js

@ -32,7 +32,6 @@ router.get('/:address/:offset*?', async function(req, res, next) { @@ -32,7 +32,6 @@ router.get('/:address/:offset*?', async function(req, res, next) {
const nextpage = address.Vouts.length === 30 ? page + 1 : null;
const prevpage = page > 1 ? page - 1 : null;
console.log(address.toJSON());
res.render('address', {
address: address.toJSON(),

2
routes/transaction.js

@ -44,8 +44,6 @@ router.get('/:txid', async function(req, res, next) { @@ -44,8 +44,6 @@ router.get('/:txid', async function(req, res, next) {
vouts: txJson.Vouts.filter((vout) => vout.TransactionVouts.direction === 1),
});
console.log(transaction.Vouts.length);
txTemplate.blockTime = transaction.Block.time.toUTCString();
res.render('transaction', {

Loading…
Cancel
Save