From 9db404c7f2c21042526c99ecdbec8fdbcb181168 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Fri, 10 Jan 2014 10:03:48 -0300 Subject: [PATCH 1/2] Prepared BlockPage (look&feel) for getting info by API --- public/css/common.css | 7 +- public/views/block.html | 161 +++++++++++++++++++++++++--------------- 2 files changed, 107 insertions(+), 61 deletions(-) diff --git a/public/css/common.css b/public/css/common.css index 7ca093a..396601a 100644 --- a/public/css/common.css +++ b/public/css/common.css @@ -40,6 +40,11 @@ body { padding-right: 15px; } -code { +.code { font-size: 80%; } + +.address { + font-size: 10px; +} + diff --git a/public/views/block.html b/public/views/block.html index 1c89df8..61534fc 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -2,72 +2,113 @@ - -

Summary

-
-
Number Of Transactions
-
--
-
Output Total
-
--
-
Estimated Transaction Volume
-
--
-
Transaction Fees
-
--
-
Height
-
{{block.height}}
-
Timestamp
-
{{block.time}}
-
Received Time
-
{{block.time}}
-
Relayed By
-
--
-
Difficulty
-
{{block.difficulty}}
-
Bits
-
{{block.bits}}
-
Size
-
{{block.size}}
-
Version
-
{{block.version}}
-
Nonce
-
{{block.nonce}}
-
- -

Hashes

- - - - - - - - - - - - - - - - - - - - - - - -
Hashes 
Hash{{block.hash}}
Previous Block{{block.previousblockhash}}
Next Block(s){{block.nextblockhash}}
Merkle Root{{block.merkleroot}}
- + +
+
+
+
+

Summary

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Number Of Transactions--
Output Total--
Estimated Transaction Volume--
Transaction Fees--
Height{{block.height}}
Timestamp{{block.time * 1000 | date:'medium'}}
Received Time-- +
Relayed By--
Difficulty{{block.difficulty}}
Bits{{block.bits}}
Size{{block.size}}
Version{{block.version}}
Nonce{{block.nonce}}
+
+
+
+
+
+
+

Hashes

+
+
+ + + + + + + + + + + + + + + + + + + +
Hash{{block.hash}}
Previous Block{{block.previousblockhash}}
Next Block{{block.nextblockhash}}
Merkle Root{{block.merkleroot}}
+
+
+
+
+

Transactions

- - - + + +
Hash
{{tx}}
{{tx}}
From 8d8a1c256b8977cf86ee25e07f1141f8d73c1e85 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Fri, 10 Jan 2014 10:25:16 -0300 Subject: [PATCH 2/2] fix text in block and transaction page --- public/views/block.html | 2 +- public/views/transaction.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/views/block.html b/public/views/block.html index 61534fc..98d76ac 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -100,7 +100,7 @@ -

Transactions

+

Transactions Transactions contained within this block

diff --git a/public/views/transaction.html b/public/views/transaction.html index c047b44..5c55a50 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -1,12 +1,15 @@
+
+ {{tx.txid}} +
+
Hash