From d90608d8eb2f0ed88bc84190ca446bde8a084388 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 2 Jul 2023 22:06:29 +0530 Subject: [PATCH] Design changes --- static/favicon.ico | Bin 856 -> 0 bytes static/templates/base.html | 191 ++++++++++++++++++++++++--------- static/templates/block.html | 6 +- static/templates/blocks.html | 6 +- static/templates/paging.html | 13 ++- static/templates/txdetail.html | 55 ++++------ 6 files changed, 172 insertions(+), 99 deletions(-) delete mode 100644 static/favicon.ico diff --git a/static/favicon.ico b/static/favicon.ico deleted file mode 100644 index a1b20e0a2698c47a454a5143ad4adb622c828eba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 856 zcmV-e1E>6nP)Px&5=lfsR9Fe^S5HV3Q5gTenUzh~%GDw$#2IGVH8xY&OCB`OQ5bgc(jkbv1QHf? z^;YI72s#)g^ykp22%2n(n;5Sr~h7_U+EtA0%)t@B9D# z-uJ$J?^}d*etUJjn=y707#v~Bk`s@MoBRp2TxrQ|ICf&p|@F!97SRGGs~@rLO4eEyjythR;%5Np_Smx6Rl z0xcq-TSdjE>uPF@zarV-%w{&+{~bBkIuE$?IiwFaQAI zm{fJikp*&PR2fmn=%xtxA~L<9Y5i+*2HV$YA{HFy80qJEnMc$4cX+hBQj@fMv1%ic z*B>k^%j;cQiqL4$ga-3F{T8pN16eye=JySA1b&~t%5OLTX%Ccd5uc(0)8+Ci5(Y=9 zCz`8RlvJSrD1f)<@)3UHL4i$8H_0Xtz=j{eCVHJQ&|p)kR3lwN zyMit&S0Da0M4X~oa5P$1cRQ2G{E!7V45Jx~#UXl!Pt$W66KwwYHDoNw9Cl;5uwWay zemiv#kcmnqkK^fiF6u&buF|i`^ zsR+O`Zfk3cFBJ-BsI-H$)4(Cq^`pcu8K@(cZ9SAt&|d74EzeY=J3BjTzs=2^qAB?t zHJK)}rNmE2e%Z?9p3C$ySzrbHPCY$6k=dD - + - - + + RanchiMall Blockbook +
-
- {{- template "specific" . -}} -
+ {{- template "specific" . -}}
- \ No newline at end of file + diff --git a/static/templates/block.html b/static/templates/block.html index fe9b7d2b..39fc5e06 100644 --- a/static/templates/block.html +++ b/static/templates/block.html @@ -45,12 +45,12 @@ {{$b.Version}} - Merkle Root - {{$b.MerkleRoot}} + Merkle Root + {{$b.MerkleRoot}} Nonce - {{$b.Nonce}} + {{$b.Nonce}} Bits diff --git a/static/templates/blocks.html b/static/templates/blocks.html index af450f85..1ff2c576 100644 --- a/static/templates/blocks.html +++ b/static/templates/blocks.html @@ -1,8 +1,6 @@ {{define "specific"}}{{$blocks := .Blocks}}{{$data := .}}
-
-

Blocks

-
+

Blocks

{{if $blocks.Blocks}}{{template "paging" $data }}{{end}}
{{if $blocks.Blocks}} @@ -29,4 +27,4 @@ {{template "paging" $data }} -{{end}}{{end}} \ No newline at end of file +{{end}}{{end}} diff --git a/static/templates/paging.html b/static/templates/paging.html index 0bdb86de..11ccff6f 100644 --- a/static/templates/paging.html +++ b/static/templates/paging.html @@ -3,15 +3,14 @@ Previous {{if $data.PagingRange}}
-
- {{range $p := $data.PagingRange}} - {{if $p}}{{$p}} +
+ {{range $p := $data.PagingRange}} + {{if $p}}{{$p}} {{else}}...{{end}} - {{end}} -
+ {{end}} +
{{end}} Next -{{end}}{{end}} \ No newline at end of file +{{end}}{{end}} diff --git a/static/templates/txdetail.html b/static/templates/txdetail.html index c9c73815..d2c669d5 100644 --- a/static/templates/txdetail.html +++ b/static/templates/txdetail.html @@ -3,16 +3,11 @@
{{$tx.Txid}} - {{if $tx.Rbf}} - RBF{{end}} + {{if $tx.Rbf}} RBF{{end}}
- {{if $tx.Blocktime}}
{{if $tx.Confirmations}}mined{{else}}first - seen{{end}} {{unixTimeSpan $tx.Blocktime}}
{{end}} + {{if $tx.Blocktime}}
{{if $tx.Confirmations}}mined{{else}}first seen{{end}} {{unixTimeSpan $tx.Blocktime}}
{{end}} {{if $tx.ConfirmationETABlocks}}
- confirmation estimated in - {{relativeTime $tx.ConfirmationETASeconds}} ({{$tx.ConfirmationETABlocks}} - blocks) + confirmation estimated in {{relativeTime $tx.ConfirmationETASeconds}} ({{$tx.ConfirmationETABlocks}} blocks)
{{end}}
@@ -45,16 +40,13 @@
{{range $a := $vout.Addresses}} - {{if and (ne $a $addr) $vout.IsAddress}}{{$a}}{{else}}{{$a}}{{end}} + {{if and (ne $a $addr) $vout.IsAddress}}{{$a}}{{else}}{{$a}}{{end}} {{else}} Unparsed address {{end}} - {{amountSpan $vout.ValueSat $data "copyable"}}{{if $vout.Spent}}{{else}}× + {{amountSpan $vout.ValueSat $data "copyable"}}{{if $vout.Spent}}{{else}}× {{end}} @@ -68,34 +60,33 @@
-{{end}} \ No newline at end of file +{{end}}