Skip to content

Commit

Permalink
minor frontend tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
janoside committed Mar 11, 2019
1 parent f371891 commit b86c5b4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
24 changes: 12 additions & 12 deletions public/css/bootstrap-dark-2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion views/includes/blocks-list.pug
Expand Up @@ -30,7 +30,7 @@ div(class="table-responsive")
td(class="data-cell monospace text-right") #{timeAgo.format()}
td(class="data-cell monospace")
if (block.miner && block.miner.name)
span(data-toggle="tooltip", title=("Identified by: " + block.miner.identifiedBy), class="rounded bg-primary px-2 py-1") #{block.miner.name}
span(data-toggle="tooltip", title=("Identified by: " + block.miner.identifiedBy), class="rounded bg-primary text-white px-2 py-1") #{block.miner.name}
else
span ?

Expand Down
12 changes: 8 additions & 4 deletions views/index.pug
Expand Up @@ -32,12 +32,12 @@ block content
a(href="https://github.com/janoside/btc-rpc-explorer", class="btn btn-primary mr-3 mb-1")
i(class="fas fa-star mr-2")
span(class="mr-2") Star
span.font-weight-light #{global.sourcecodeProjectMetadata.stargazers_count}
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.stargazers_count}

a(href="https://github.com/janoside/btc-rpc-explorer/fork", class="btn btn-primary mr-3 mb-1")
i(class="fas fa-code-branch mr-2")
span(class="mr-2") Fork
span.font-weight-light #{global.sourcecodeProjectMetadata.forks_count}
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.forks_count}

button.btn.btn-primary(type="button", class="btn btn-primary mb-1", data-toggle="modal", data-target="#exampleModalCenter")
i(class="fas fa-heart mr-2")
Expand Down Expand Up @@ -112,11 +112,13 @@ block content
span(class="font-weight-bold") Chainwork

p(class="lead")
span(data-toggle="tooltip", title=getblockchaininfo.chainwork.replace(/^0+/, ''))
span(class="mr-2")
span #{chainworkData[0]}
span x 10
sup #{chainworkData[1].exponent}
span hashes

i(class="fas fa-info-circle fa-xs", data-toggle="tooltip", title=getblockchaininfo.chainwork.replace(/^0+/, ''))

div(class=networkSummaryColumnClass)
div(class="float-left", style="height: 40px; width: 40px; font-size: 12px;")
Expand All @@ -128,11 +130,13 @@ block content
span(class="font-weight-bold") Difficulty

p(class="lead")
span(title=parseFloat(getblockchaininfo.difficulty).toLocaleString(), data-toggle="tooltip")
span(class="mr-2")
span #{difficultyData[0]}
span x 10
sup #{difficultyData[1].exponent}

i(class="fas fa-info-circle fa-xs monospace", data-toggle="tooltip", title=parseFloat(getblockchaininfo.difficulty).toLocaleString())

if (getblockchaininfo.size_on_disk)
div(class=networkSummaryColumnClass)
div(class="float-left", style="height: 40px; width: 40px;")
Expand Down
13 changes: 13 additions & 0 deletions views/layout.pug
Expand Up @@ -131,6 +131,19 @@ html(lang="en")
dt Source
dd
a(href="https://github.com/janoside/btc-rpc-explorer") github.com/janoside/btc-rpc-explorer

if (global.sourcecodeProjectMetadata)
div(class="mt-2")
a(href="https://github.com/janoside/btc-rpc-explorer", class="btn btn-primary btn-sm mr-3 mb-1 text-decoration-none")
i(class="fas fa-star mr-2")
span(class="mr-2") Star
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.stargazers_count}

a(href="https://github.com/janoside/btc-rpc-explorer/fork", class="btn btn-primary btn-sm mr-3 mb-1 text-decoration-none")
i(class="fas fa-code-branch mr-2")
span(class="mr-2") Fork
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.forks_count}


if (sourcecodeVersion)
dt Running Version
Expand Down

0 comments on commit b86c5b4

Please sign in to comment.