From a1928e0207c5a3e1d9f3fbc6dd428605f0b2b65f Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Tue, 17 Mar 2020 16:36:28 -0400 Subject: [PATCH] minor frontend code tweaks --- views/node-status.pug | 2 +- views/peers.pug | 8 ++++---- views/tx-stats.pug | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/views/node-status.pug b/views/node-status.pug index 4f9db97..85de6b4 100644 --- a/views/node-status.pug +++ b/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 diff --git a/views/peers.pug b/views/peers.pug index f97f711..b2613a9 100644 --- a/views/peers.pug +++ b/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 diff --git a/views/tx-stats.pug b/views/tx-stats.pug index b13252f..4f190f4 100644 --- a/views/tx-stats.pug +++ b/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)