Quellcode durchsuchen

05/25/2021 04:04:12 PM MST

master
coldstar vor 3 Jahren
Ursprung
Commit
9491151cb2
2 geänderte Dateien mit 16 neuen und 2 gelöschten Zeilen
  1. +5
    -2
      routes/baseActionsRouter.js
  2. +11
    -0
      views/address.pug

+ 5
- 2
routes/baseActionsRouter.js Datei anzeigen

@@ -327,13 +327,16 @@ router.get("/address/:address", function(req, res) {
console.log(obj.balance);
console.log(obj.received);

res.locals.address = obj.address;
res.locals.balance = obj.balance;
res.locals.received = obj.received;

console.log(stderr);
if (error !== null) {
console.log(`exec error: ${error}`);
}
});


/*
const { spawn } = require("child_process");

@@ -361,7 +364,7 @@ router.get("/address/:address", function(req, res) {
});
*/

//res.render("address");
res.render("address");

});



+ 11
- 0
views/address.pug Datei anzeigen

@@ -0,0 +1,11 @@
extends layout

block headContent
title Address #{address}

block content
h1(class="h2") Address
br
small(class="monospace") #{address}
hr


Laden…
Abbrechen
Speichern