Browse Source

rename "Node Details" to "Node Status"

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
8c24bcce5a
  1. 12
      routes/baseActionsRouter.js
  2. 2
      views/layout.pug
  3. 4
      views/node-status.pug

12
routes/baseActionsRouter.js

@ -52,7 +52,7 @@ router.get("/", function(req, res) {
});
});
router.get("/node-details", function(req, res) {
router.get("/node-status", function(req, res) {
var client = global.client;
rpcApi.getBlockchainInfo().then(function(getblockchaininfo) {
@ -67,27 +67,27 @@ router.get("/node-details", function(req, res) {
rpcApi.getNetTotals().then(function(getnettotals) {
res.locals.getnettotals = getnettotals;
res.render("node-details");
res.render("node-status");
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details");
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details");
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details");
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.render("node-details");
res.render("node-status");
});
});

2
views/layout.pug

@ -68,7 +68,7 @@ html
div(id="sub-menu", class="container mb-4", style="margin-top: -1.0rem;")
ul(class="nav")
li(class="nav-item")
a(href="/node-details", class="nav-link") Node Details
a(href="/node-status", class="nav-link") Node Status
li(class="nav-item")
a(href="/rpc-browser", class="nav-link") RPC Browser
li(class="nav-item")

4
views/node-details.pug → views/node-status.pug

@ -1,10 +1,10 @@
extends layout
block headContent
title Node Details
title Node Status
block content
h1(class="h2") Node Details
h1(class="h2") Node Status
hr
if (getblockchaininfo)
Loading…
Cancel
Save