Skip to content
Permalink
Browse files

pug formatting consistency improvements

  • Loading branch information...
janoside committed Oct 20, 2019
1 parent abe20d5 commit 195874987191fd68c50dcba967d8833d992e5b60
@@ -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.
@@ -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;
@@ -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}
@@ -10,7 +10,7 @@ block headContent
}

block content
h1(class="h3") RPC Browser
h1.h3 RPC Browser
hr

if (gethelp)
@@ -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}
@@ -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.
@@ -4,7 +4,7 @@ block headContent
title Home

block content
h1(class="h3") #{coinConfig.siteTitle}
h1.h3 #{coinConfig.siteTitle}
hr

if (getblockchaininfo == null)
@@ -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")
@@ -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)}


@@ -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
@@ -4,7 +4,7 @@ block headContent
title Search

block content
h1(class="h3") Search
h1.h3 Search
hr

div(class="mb-5")
@@ -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))
@@ -4,7 +4,7 @@ block headContent
title Transaction Stats

block content
h1(class="h3") Transaction Stats
h1.h3 Transaction Stats
hr

if (false)

0 comments on commit 1958749

Please sign in to comment.
You can’t perform that action at this time.