From f9308e4b1ea3d47846a4dd9f39dd1dcd3b669fc6 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Tue, 14 Aug 2018 17:08:14 -0400 Subject: [PATCH] minor ux tweaks --- views/includes/block-content.pug | 5 +++-- views/includes/blocks-list.pug | 3 ++- views/includes/transaction-io-details.pug | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/views/includes/block-content.pug b/views/includes/block-content.pug index 8565bca..2bd222a 100644 --- a/views/includes/block-content.pug +++ b/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 diff --git a/views/includes/blocks-list.pug b/views/includes/blocks-list.pug index 6a4f51d..459ce96 100644 --- a/views/includes/blocks-list.pug +++ b/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)))); diff --git a/views/includes/transaction-io-details.pug b/views/includes/transaction-io-details.pug index abe2d3d..4e0af89 100644 --- a/views/includes/transaction-io-details.pug +++ b/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'))