Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide JSON tab with IP addresses when BTCEXP_HIDE_IP=true #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 56 additions & 54 deletions views/node-status.pug
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ block content
ul.nav.nav-tabs.mb-3
li.nav-item
a.nav-link.active(data-toggle="tab", href="#tab-details", role="tab") Details
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-json", role="tab") JSON
if ((!config.hideIp))
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-json", role="tab") JSON


div.tab-content
Expand Down Expand Up @@ -178,58 +179,59 @@ block content
span.text-muted.ml-3 (score: #{item.score.toLocaleString()})


div.tab-pane(id="tab-json", role="tabpanel")

ul.nav.nav-pills.mb-3
li.nav-item
a.nav-link.active(data-toggle="tab", href="#tab-getblockchaininfo", role="tab") getblockchaininfo
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getnettotals", role="tab") getnettotals
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getnetworkinfo", role="tab") getnetworkinfo
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getmempoolinfo", role="tab") getmempoolinfo

div.tab-content
div.tab-pane.active(id="tab-getblockchaininfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getblockchaininfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}

div.tab-pane(id="tab-getnettotals", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getnettotals
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getnettotals, null, 4)}

div.tab-pane(id="tab-getnetworkinfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getnetworkinfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}

div.tab-pane(id="tab-getmempoolinfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getmempoolinfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getmempoolinfo, null, 4)}
if ((!config.hideIp))
div.tab-pane(id="tab-json", role="tabpanel")

ul.nav.nav-pills.mb-3
li.nav-item
a.nav-link.active(data-toggle="tab", href="#tab-getblockchaininfo", role="tab") getblockchaininfo
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getnettotals", role="tab") getnettotals
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getnetworkinfo", role="tab") getnetworkinfo
li.nav-item
a.nav-link(data-toggle="tab", href="#tab-getmempoolinfo", role="tab") getmempoolinfo

div.tab-content
div.tab-pane.active(id="tab-getblockchaininfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getblockchaininfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}

div.tab-pane(id="tab-getnettotals", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getnettotals
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getnettotals, null, 4)}

div.tab-pane(id="tab-getnetworkinfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getnetworkinfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}

div.tab-pane(id="tab-getmempoolinfo", role="tabpanel")
div.card.shadow-sm.mb-3
div.card-body
h4.h6.mb-0 getmempoolinfo
hr

div.highlight
pre
code.json.bg-light(data-lang="json") #{JSON.stringify(getmempoolinfo, null, 4)}

block endOfBody
script.
Expand Down