From 60b1dd15f44a4bc3c4d93a6402d5704208babc67 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 10 Sep 2020 14:55:49 +0700 Subject: [PATCH] Fix pluralization for "transactions". Display "genesis block" on block 0 --- frontend/src/app/components/block/block.component.html | 4 ++-- .../blockchain-blocks/blockchain-blocks.component.html | 2 +- .../components/mempool-blocks/mempool-blocks.component.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/components/block/block.component.html b/frontend/src/app/components/block/block.component.html index 448958841..fa5cfeb03 100644 --- a/frontend/src/app/components/block/block.component.html +++ b/frontend/src/app/components/block/block.component.html @@ -1,7 +1,7 @@
-

Block {{ blockHeight }}

+

Genesis Block {{ blockHeight }}

@@ -82,7 +82,7 @@
-

{{ block.tx_count | number }} transactions

+

{{ block.tx_count | number }} transactions

diff --git a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html index 8cd1b1f0e..1df5c56e5 100644 --- a/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html +++ b/frontend/src/app/components/blockchain-blocks/blockchain-blocks.component.html @@ -13,7 +13,7 @@ {{ block.feeRange[1] | number:'1.0-0' }} - {{ block.feeRange[block.feeRange.length - 1] | number:'1.0-0' }} sat/vB
{{ block.size | bytes: 2 }}
-
{{ block.tx_count | number }} transactions
+
{{ block.tx_count | number }} transactions
ago
diff --git a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.html b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.html index 165a749ee..5b740c7c4 100644 --- a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.html +++ b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.html @@ -11,7 +11,7 @@ {{ projectedBlock.feeRange[0] | number:'1.0-0' }} - {{ projectedBlock.feeRange[projectedBlock.feeRange.length - 1] | number:'1.0-0' }} sat/vB
{{ projectedBlock.blockSize | bytes: 2 }}
-
{{ projectedBlock.nTx | number }} transactions
+
{{ projectedBlock.nTx | number }} transactions
In < {{ 1 * i + 1 }} minute