Browse Source

minor ux tweaks

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
f9308e4b1e
  1. 3
      views/includes/block-content.pug
  2. 1
      views/includes/blocks-list.pug
  3. 2
      views/includes/transaction-io-details.pug

3
views/includes/block-content.pug

@ -215,12 +215,13 @@ div(class="tab-content")
div(class="xcard mb-3")
div(class="card-header")
if (tx && tx.txid)
strong ##{(txIndex + offset).toLocaleString()}
span ##{(txIndex + offset + 1).toLocaleString()}
span –
a(href=("/tx/" + tx.txid), class="monospace") #{tx.txid}
if (global.specialTransactions && global.specialTransactions[tx.txid])
span
a(data-toggle="tooltip", title=(coinConfig.name + " Fun! See transaction for details"))
i(class="fas fa-certificate text-primary")
div(class="card-body")

1
views/includes/blocks-list.pug

@ -21,6 +21,7 @@ table(class="table table-striped table-responsive-sm")
if (global.specialBlocks && global.specialBlocks[block.hash])
span
a(data-toggle="tooltip", title=(coinConfig.name + " Fun! See block for details"))
i(class="fas fa-certificate text-primary")
td(class="data-cell monospace") #{moment.utc(new Date(parseInt(block.time) * 1000)).format("Y-MM-DD HH:mm:ss")}

2
views/includes/transaction-io-details.pug

@ -34,6 +34,7 @@ div(class="row monospace")
div(style="word-break: break-word;")
a(href=("/address/" + vout.scriptPubKey.addresses[0])) #{vout.scriptPubKey.addresses[0]}
if (global.specialAddresses[vout.scriptPubKey.addresses[0]])
span
a(data-toggle="tooltip", title=("Miner payout address: " + global.specialAddresses[vout.scriptPubKey.addresses[0]].name))
i(class="fas fa-certificate text-primary")
span(class="small") via
@ -81,6 +82,7 @@ div(class="row monospace")
span(class="monospace", style="word-break: break-word;") #{vout.scriptPubKey.addresses[0]}
if (global.specialAddresses[vout.scriptPubKey.addresses[0]])
span
a(data-toggle="tooltip", title=("Miner payout address: " + global.specialAddresses[vout.scriptPubKey.addresses[0]].name))
i(class="fas fa-certificate text-primary")

Loading…
Cancel
Save