From 576a1a896ece571b200200c3b1680b7f4faaf6bf Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Mon, 24 Feb 2014 10:45:14 -0300 Subject: [PATCH] fix names. reorder some layout `s elements. --- public/src/js/controllers/transactions.js | 2 +- public/views/block.html | 7 ++--- public/views/transaction.html | 31 +++++-------------- public/views/transaction/tx.html | 36 ++++++++++++----------- 4 files changed, 30 insertions(+), 46 deletions(-) diff --git a/public/src/js/controllers/transactions.js b/public/src/js/controllers/transactions.js index 5dc9bc5..de66b42 100644 --- a/public/src/js/controllers/transactions.js +++ b/public/src/js/controllers/transactions.js @@ -158,7 +158,7 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans if ($routeParams.v_type == '>' || $routeParams.v_type == '<') { $scope.from_vin = $routeParams.v_type == '<' ? true : false; $scope.from_vout = $routeParams.v_type == '>' ? true : false; - $scope.v_index = parseInt($routeParams.v_index) + 1; + $scope.v_index = parseInt($routeParams.v_index); $scope.itemsExpanded = true; } diff --git a/public/views/block.html b/public/views/block.html index 8a06237..78f1a89 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -2,7 +2,6 @@
-

Block

Loading Block...
@@ -16,7 +15,6 @@ {{block.hash}}
-

Hashes

@@ -35,7 +33,8 @@
-

Summary

+

Block #{{block.height}}

+

Summary

Loading Block Details... @@ -109,7 +108,7 @@
-

Transactions Transactions contained within this block

+

Transactions

diff --git a/public/views/transaction.html b/public/views/transaction.html index c36235f..c0cf9bb 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -3,7 +3,6 @@
-

Transaction

Loading Transaction...
@@ -41,10 +40,13 @@
-

- Details - View information about a bitcoin transaction -

+

Transaction + + Input + Output + {{v_index}} + +

Loading Transaction Details... @@ -53,25 +55,6 @@
-
-

Inputs and Outputs

-
- - - - - - - - - - - - - - -
Total Input{{$root.currency.getConvertion(tx.valueIn)}}
Total Output{{$root.currency.getConvertion(tx.valueOut)}}
Fees{{$root.currency.getConvertion(tx.fees)}}
-
diff --git a/public/views/transaction/tx.html b/public/views/transaction/tx.html index 565ab5b..81a0bdc 100644 --- a/public/views/transaction/tx.html +++ b/public/views/transaction/tx.html @@ -51,10 +51,10 @@ -
- only highlighted... - expand all... -
+
+ show input {{ v_index }} + show all +

{{$root.currency.getConvertion(vin.value)}}

@@ -70,7 +70,7 @@
-
+
scriptSig {{vin.scriptSig.asm}} @@ -81,16 +81,18 @@
- -