Browse Source

minor tweaks for the public demo site

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
3655fb24b6
  1. 1
      app/coins/btc.js
  2. 1
      app/coins/ltc.js
  3. 39
      views/index.pug
  4. 2
      views/terminal.pug

1
app/coins/btc.js

@ -8,6 +8,7 @@ module.exports = {
siteDescriptionHtml:"<b>BTC Explorer</b> is <a href='https://github.com/janoside/btc-rpc-explorer). If you run your own [Bitcoin Full Node](https://bitcoin.org/en/full-node), **BTC Explorer** can easily run alongside it, communicating via RPC calls. See the project [ReadMe](https://github.com/janoside/btc-rpc-explorer) for a list of features and instructions for running.",
nodeTitle:"Bitcoin Full Node",
nodeUrl:"https://bitcoin.org/en/full-node",
demoSiteUrl: "https://btc-explorer.chaintools.io",
currencyUnits:[
{
name:"BTC",

1
app/coins/ltc.js

@ -7,6 +7,7 @@ module.exports = {
siteTitle:"Litecoin Explorer",
nodeTitle:"Litecoin Full Node",
nodeUrl:"https://litecoin.org/",
demoSiteUrl: "https://ltc-explorer.chaintools.io",
currencyUnits:[
{
name:"LTC",

39
views/index.pug

@ -7,21 +7,31 @@ block content
h1(class="h2") #{coinConfig.siteTitle}
hr
p(class="lead")
strong #{coinConfig.siteTitle}
span is
a(href="https://github.com/janoside/btc-rpc-explorer") open-source
span . If you run your own
a(href=coinConfig.nodeUrl) #{coinConfig.name} Full Node
span ,
strong #{coinConfig.siteTitle}
span can easily run alongside it, communicating via RPC calls. See the
a(href="https://github.com/janoside/btc-rpc-explorer") project description
span for a list of features and instructions for running.
if (env.demoSite)
div(class="alert alert-primary", role="alert")
p(class="lead")
strong #{coinConfig.siteTitle}
span is
a(href="https://github.com/janoside/btc-rpc-explorer") open-source
span . If you run your own
a(href=coinConfig.nodeUrl) #{coinConfig.name} Full Node
span ,
strong #{coinConfig.siteTitle}
span can easily run alongside it, communicating via RPC calls.
br
span See the
a(href="https://github.com/janoside/btc-rpc-explorer") project description
span for a list of features and instructions for running.
div
a(class="github-button", href="https://github.com/janoside/btc-rpc-explorer", data-icon="octicon-star", data-size="large", data-show-count="true", aria-label="Star janoside/btc-rpc-explorer on GitHub", style="padding-right: 10px;") Star
span
a(class="github-button", href="https://github.com/janoside/btc-rpc-explorer/fork", data-icon="octicon-repo-forked", data-size="large", data-show-count="true", aria-label="Fork janoside/btc-rpc-explorer on GitHub") Fork
if (latestBlocks)
div(class="row mt-5")
div(class="row mt-4")
div(class="col")
h2(class="h3") Latest Blocks
if (getblockchaininfo.initialblockdownload)
@ -36,4 +46,7 @@ block content
- var blocks = latestBlocks;
- var blockOffset = 0;
include includes/blocks-list.pug
include includes/blocks-list.pug
block endOfBody
script(async, defer, src="https://buttons.github.io/buttons.js")

2
views/terminal.pug

@ -6,7 +6,7 @@ block content
h1(class="h2") RPC Terminal
div(class="col")
if (!env.rpc || !env.rpc.rpc)
if (!env.demoSite && (!env.rpc || !env.rpc.rpc))
span(style="float: right;")
a(href="/disconnect", class="btn btn-secondary") Disconnect from node

Loading…
Cancel
Save