Browse Source

minor frontend code tweaks

master
Dan Janosik 5 years ago
parent
commit
a1928e0207
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 2
      views/node-status.pug
  2. 8
      views/peers.pug
  3. 2
      views/tx-stats.pug

2
views/node-status.pug

@ -165,7 +165,7 @@ block content
div(id="tab-json", class="tab-pane", role="tabpanel")
ul(class='nav nav-pills mb-3')
ul.nav.nav-pills.mb-3
li.nav-item
a(data-toggle="tab", href="#tab-getblockchaininfo", class="nav-link active", role="tab") getblockchaininfo
li.nav-item

8
views/peers.pug

@ -42,7 +42,7 @@ block content
h2(class="h6 mb-0") Summary
div.card-body
div.row
div(class="col-md-6")
div.col-md-6
span(class="font-weight-bold") Top Versions
hr
table(class="table table-striped table-responsive-sm")
@ -59,7 +59,7 @@ block content
td(class="data-cell text-monospace") #{item[0]}
td(class="data-cell text-monospace") #{item[1].toLocaleString()}
div(class="col-md-6")
div.col-md-6
span(class="font-weight-bold") Top Service Flags
hr
table(class="table table-striped table-responsive-sm")
@ -142,14 +142,14 @@ block content
div(style="display: none;", id=("peerinfo_" + index), class="p-3")
h6 Peer Details
pre
code(class="json bg-light") #{JSON.stringify(item, null, 4)}
code.json.bg-light #{JSON.stringify(item, null, 4)}
if (peerIpSummary && peerIpSummary.detailsByIp && peerIpSummary.detailsByIp[item.addr.substring(0, item.addr.lastIndexOf(":"))])
hr
h6 IP Geo-Location Info
pre
code(class="json bg-light") #{JSON.stringify(peerIpSummary.detailsByIp[item.addr.substring(0, item.addr.lastIndexOf(":"))], null, 4)}
code.json.bg-light #{JSON.stringify(peerIpSummary.detailsByIp[item.addr.substring(0, item.addr.lastIndexOf(":"))], null, 4)}
block endOfBody

2
views/tx-stats.pug

@ -9,7 +9,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(txStatResults, null, 4)}
code.json.bg-light #{JSON.stringify(txStatResults, null, 4)}
if (true)
if (false)

Loading…
Cancel
Save