From 8c24bcce5a83cab724a52dce53521ac49ae47289 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Fri, 11 May 2018 13:30:05 -0400 Subject: [PATCH] rename "Node Details" to "Node Status" --- routes/baseActionsRouter.js | 12 ++++++------ views/layout.pug | 2 +- views/{node-details.pug => node-status.pug} | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) rename views/{node-details.pug => node-status.pug} (98%) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index 54d4e61..62e6fb2 100644 --- a/routes/baseActionsRouter.js +++ b/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"); }); }); diff --git a/views/layout.pug b/views/layout.pug index d082246..64cacc7 100644 --- a/views/layout.pug +++ b/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") diff --git a/views/node-details.pug b/views/node-status.pug similarity index 98% rename from views/node-details.pug rename to views/node-status.pug index 27fb8f7..2a8d4fa 100644 --- a/views/node-details.pug +++ b/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)