From 70bdd6c8fbde27cbb774ab4ff0d011ab3ab39281 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Mon, 17 Sep 2018 10:51:20 +0200 Subject: [PATCH] Add outpoint link to inputs in explorer txdetail --- static/templates/txdetail.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/templates/txdetail.html b/static/templates/txdetail.html index fbef2681..4256a29f 100644 --- a/static/templates/txdetail.html +++ b/static/templates/txdetail.html @@ -16,7 +16,10 @@ {{- range $vin := $tx.Vin -}} - {{- range $a := $vin.Addresses}} + {{- if $vin.Txid -}} + ➡  + {{- end -}} + {{- range $a := $vin.Addresses -}} {{if and (ne $a $addr) $vin.Searchable}}{{$a}}{{else}}{{$a}}{{end}} @@ -56,8 +59,8 @@ Unparsed address {{- end -}} - {{formatAmount $vout.Value}} {{$cs}}{{if $vout.Spent}}{{if $vout.SpentTxID}}(S){{else}}(S){{end}}{{else -}} - (U) + {{formatAmount $vout.Value}} {{$cs}} {{if $vout.Spent}}{{if $vout.SpentTxID}}{{else}}{{end}}{{else -}} + × {{- end -}}