From 84d9694a5a3f166dea11ee93ff65afe02ae5b838 Mon Sep 17 00:00:00 2001 From: coldstar Date: Wed, 26 May 2021 00:03:13 -0700 Subject: [PATCH] 05/26/2021 12:03:13 AM MST --- views/includes/block-content.pug | 4 +++- views/transaction.pug | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/views/includes/block-content.pug b/views/includes/block-content.pug index 5a28ce9..10a18df 100755 --- a/views/includes/block-content.pug +++ b/views/includes/block-content.pug @@ -147,7 +147,9 @@ div(class="tab-content") td if (vout.scriptPubKey && vout.scriptPubKey.addresses) - span(class="monospace") #{vout.scriptPubKey.addresses[0]} + //span(class="monospace") #{vout.scriptPubKey.addresses[0]} + span(class="monospace") + a(href=("/address/" + vout.scriptPubKey.addresses[0])) br span(class="monospace text-muted") via tx a(href=("/tx/" + txInput.txid + "#output-" + tx.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{tx.vin[txInputIndex].vout + 1} diff --git a/views/transaction.pug b/views/transaction.pug index 0535de0..e8f4b87 100755 --- a/views/transaction.pug +++ b/views/transaction.pug @@ -168,7 +168,9 @@ block content td if (vout.scriptPubKey && vout.scriptPubKey.addresses) - span(class="monospace") #{vout.scriptPubKey.addresses[0]} + //span(class="monospace") #{vout.scriptPubKey.addresses[0]} + span(class="monospace") + a(href=("/address/" + vout.scriptPubKey.addresses[0])) br span(class="monospace text-muted") via tx a(href=("/tx/" + txInput.txid + "#output-" + result.getrawtransaction.vin[txInputIndex].vout), class="monospace") #{txInput.txid.substring(0, 14)}..., Output ##{result.getrawtransaction.vin[txInputIndex].vout + 1} @@ -199,7 +201,9 @@ block content if (vout.scriptPubKey) if (vout.scriptPubKey.addresses) a(id="output-" + voutIndex) - span(class="monospace") #{vout.scriptPubKey.addresses[0]} + //span(class="monospace") #{vout.scriptPubKey.addresses[0]} + span(class="monospace") + a(href=("/address/" + vout.scriptPubKey.addresses[0])) else if (vout.scriptPubKey.hex && vout.scriptPubKey.hex.startsWith('6a24aa21a9ed')) span(class="monospace") Segregated Witness committment -