From ac1da72ba87274513f1d1b4c29aedc8433a08de8 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 2 Jul 2023 01:00:11 +0530 Subject: [PATCH] UI changes --- server/public_test.go | 4 ++-- static/templates/base.html | 42 +++++----------------------------- static/templates/blocks.html | 8 +++---- static/templates/paging.html | 13 ++++++----- static/templates/txdetail.html | 2 +- 5 files changed, 20 insertions(+), 49 deletions(-) diff --git a/server/public_test.go b/server/public_test.go index 2217696b..6e5977da 100644 --- a/server/public_test.go +++ b/server/public_test.go @@ -331,7 +331,7 @@ func httpTestsBitcoinType(t *testing.T, ts *httptest.Server) { body: []string{ `Trezor Fake Coin Explorer

Application status

Synchronization with backend is disabled, the state of index is not up to date.

`, - `

Blockbook

CoinFakecoin
Host
Version / Commit / Buildunknown / unknown / unknown
Synchronized
true
Last Block225494
Last Block Update`, `
Mempool in Sync
false
Last Mempool Update
Transactions in Mempool0
Current Fiat rates

Backend

Chainfakecoin
Version001001
Subversion/Fakecoin:0.0.1/
Last Block2
Difficulty
Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose.
`, + `

Backend

Chainfakecoin
Version001001
Subversion/Fakecoin:0.0.1/
Last Block2
Difficulty
`, }, }, { @@ -930,7 +930,7 @@ func socketioTestsBitcoinType(t *testing.T, ts *httptest.Server) { { name: "socketio getInfo", req: socketioReq{"getInfo", []interface{}{}}, - want: `{"result":{"blocks":225494,"testnet":true,"network":"fakecoin","subversion":"/Fakecoin:0.0.1/","coin_name":"Fakecoin","about":"Blockbook - blockchain indexer for Trezor Suite https://trezor.io/trezor-suite. Do not use for any other purpose."}}`, + want: `{"result":{"blocks":225494,"testnet":true,"network":"fakecoin","subversion":"/Fakecoin:0.0.1/","coin_name":"Fakecoin"}}`, }, { name: "socketio estimateFee", diff --git a/static/templates/base.html b/static/templates/base.html index 7ff14449..b5256e2f 100644 --- a/static/templates/base.html +++ b/static/templates/base.html @@ -13,41 +13,15 @@ crossorigin="anonymous"> - - RanchiMall {{.CoinLabel}} Explorer + + RanchiMall Blockbook