Browse Source

minor ux tweaks

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

5
views/includes/block-content.pug

@ -215,13 +215,14 @@ 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
i(class="fas fa-certificate text-primary")
a(data-toggle="tooltip", title=(coinConfig.name + " Fun! See transaction for details"))
i(class="fas fa-certificate text-primary")
div(class="card-body")
//pre

3
views/includes/blocks-list.pug

@ -21,7 +21,8 @@ table(class="table table-striped table-responsive-sm")
if (global.specialBlocks && global.specialBlocks[block.hash])
span
i(class="fas fa-certificate text-primary")
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")}
- var timeAgo = moment.duration(moment.utc(new Date()).diff(moment.utc(new Date(parseInt(block.time) * 1000))));

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

@ -34,7 +34,8 @@ 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]])
a(data-toggle="tooltip", title=("Miner payout address: " + global.specialAddresses[vout.scriptPubKey.addresses[0]].name))
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
a(href=("/tx/" + txInput.txid + "#output-" + txVin.vout)) #{txInput.txid.substring(0, 20)}...[#{txVin.vout}]
@ -81,7 +82,8 @@ div(class="row monospace")
span(class="monospace", style="word-break: break-word;") #{vout.scriptPubKey.addresses[0]}
if (global.specialAddresses[vout.scriptPubKey.addresses[0]])
a(data-toggle="tooltip", title=("Miner payout address: " + global.specialAddresses[vout.scriptPubKey.addresses[0]].name))
span
a(data-toggle="tooltip", title=("Miner payout address: " + global.specialAddresses[vout.scriptPubKey.addresses[0]].name))
i(class="fas fa-certificate text-primary")
else if (vout.scriptPubKey.hex && vout.scriptPubKey.hex.startsWith('6a24aa21a9ed'))

Loading…
Cancel
Save