pug formatting consistency improvements

This commit is contained in:
Dan Janosik 2019-10-20 00:59:50 -04:00
parent abe20d540f
commit 1958749871
No known key found for this signature in database
GPG key ID: C6F8CE9FFDB2CED2
13 changed files with 23 additions and 23 deletions

View file

@ -4,7 +4,7 @@ block headContent
title About
block content
h1(class="h3") About
h1.h3 About
hr
p This tool is intended to be a simple, self-hosted explorer for the #{coinConfig.name} blockchain, driven by RPC calls to your own node. This tool is easy to run but lacks some features compared to database-backed explorers.

View file

@ -10,7 +10,7 @@ block content
br
small(class="monospace") #{address}
else
h1(class="h3") Address
h1.h3 Address
br
small(class="monospace") #{address}
@ -75,7 +75,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(addressObj, null, 4)}
code.json.bg-light #{JSON.stringify(addressObj, null, 4)}
ul(class='nav nav-tabs mb-3')
li(class="nav-item")
@ -146,7 +146,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(firstSeenTransaction)}
code.json.bg-light #{JSON.stringify(firstSeenTransaction)}
if (balance)
if (balance.conflictedResults)
@ -315,7 +315,7 @@ block content
each tx, txIndex in transactions
//pre
// code(class="json bg-light") #{JSON.stringify(tx, null, 4)}
// code.json.bg-light #{JSON.stringify(tx, null, 4)}
div(class=("xcard bg-light rounded shadow-sm " + ((txIndex < (transactions.length - 1) || txids.length > limit) ? "mb-4" : "")))
div(class="card-header monospace clearfix")
div(class="float-left", style="margin-right: 0px;")
@ -373,7 +373,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(transactions, null, 4)}
code.json.bg-light #{JSON.stringify(transactions, null, 4)}
if (!crawlerBot && addressDetails && addressDetails.txCount > limit)
- var txCount = addressDetails.txCount;

View file

@ -4,7 +4,7 @@ block headContent
title Block ##{result.getblock.height.toLocaleString()}, #{result.getblock.hash}
block content
h1(class="h3") Block
h1.h3 Block
small(style="width: 100%;", class="monospace") ##{result.getblock.height.toLocaleString()}
br
small(style="width: 100%;", class="monospace word-wrap") #{result.getblock.hash}

View file

@ -10,7 +10,7 @@ block headContent
}
block content
h1(class="h3") RPC Browser
h1.h3 RPC Browser
hr
if (gethelp)

View file

@ -6,11 +6,11 @@ block content
if (message)
pre
code(class="json bg-light") !{message}
code.json.bg-light !{message}
else
p Unknown error
if (error)
h2 #{error.status}
pre
code(class="json bg-light") #{error.stack}
code.json.bg-light #{error.stack}

View file

@ -4,7 +4,7 @@ block headContent
title #{coinConfig.name} Fun
block content
h1(class="h3") #{coinConfig.name} Fun
h1.h3 #{coinConfig.name} Fun
hr
p Below is a list of fun/interesting things in the #{coinConfig.name} blockchain. Some are historical firsts, others are just fun or cool.

View file

@ -4,7 +4,7 @@ block headContent
title Home
block content
h1(class="h3") #{coinConfig.siteTitle}
h1.h3 #{coinConfig.siteTitle}
hr
if (getblockchaininfo == null)

View file

@ -4,12 +4,12 @@ block headContent
title Mempool Summary
block content
h1(class="h3") Mempool Summary
h1.h3 Mempool Summary
hr
if (false)
pre
code(class="json bg-light") #{JSON.stringify(mempoolstats, null, 4)}
code.json.bg-light #{JSON.stringify(mempoolstats, null, 4)}
if (true)
div(class="card mb-3 shadow-sm")

View file

@ -4,7 +4,7 @@ block headContent
title Node Status
block content
h1(class="h3") Node Status
h1.h3 Node Status
hr
if (getblockchaininfo)
@ -18,7 +18,7 @@ block content
if (false)
pre
code(class="json bg-light") #{JSON.stringify(getblockchaininfo, null, 4)}
code.json.bg-light #{JSON.stringify(getblockchaininfo, null, 4)}
ul(class='nav nav-tabs mb-3')
li(class="nav-item")
@ -123,14 +123,14 @@ block content
div(class="tab-content")
div(id="tab-getblockchaininfo", class="tab-pane active", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getblockchaininfo, null, 4)}
div(id="tab-getnettotals", class="tab-pane", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getnettotals, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getnettotals, null, 4)}
div(id="tab-getnetworkinfo", class="tab-pane", role="tabpanel")
pre
code(class="json bg-light", data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}
code.json.bg-light(data-lang="json") #{JSON.stringify(getnetworkinfo, null, 4)}

View file

@ -17,7 +17,7 @@ block headContent
#map { height: 700px; }
block content
h1(class="h3") #{peerSummary.getpeerinfo.length}
h1.h3 #{peerSummary.getpeerinfo.length}
if (peerSummary.getpeerinfo.length == 1)
span Peer
else

View file

@ -4,7 +4,7 @@ block headContent
title Search
block content
h1(class="h3") Search
h1.h3 Search
hr
div(class="mb-5")

View file

@ -6,7 +6,7 @@ block headContent
block content
div(class="row")
div(class="col")
h1(class="h3") RPC Terminal
h1.h3 RPC Terminal
div(class="col")
if (!config.demoSite && (!config.credentials.rpc || !config.credentials.rpc.rpc))

View file

@ -4,7 +4,7 @@ block headContent
title Transaction Stats
block content
h1(class="h3") Transaction Stats
h1.h3 Transaction Stats
hr
if (false)