From 13c86e4e7d56e8ad9048b7607d4dff4429cb71df Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sat, 24 Mar 2018 23:30:03 -0600 Subject: [PATCH] web-ui: Improve TransactionDetails view --- web-ui/src/app/app.component.ts | 3 +- .../transaction-details.component.html | 133 +++++++++++------- 2 files changed, 81 insertions(+), 55 deletions(-) diff --git a/web-ui/src/app/app.component.ts b/web-ui/src/app/app.component.ts index cddb4d0..7019dc2 100644 --- a/web-ui/src/app/app.component.ts +++ b/web-ui/src/app/app.component.ts @@ -90,7 +90,8 @@ export class AppComponent { 'label.merchant': 'Merchant', 'label.total': 'Total', 'label.summary': 'Summary', - 'label.block': 'Block' + 'label.block': 'Block', + 'label.transaction': 'Transaction' }; } } diff --git a/web-ui/src/app/components/transaction-details/transaction-details.component.html b/web-ui/src/app/components/transaction-details/transaction-details.component.html index 07f9bff..56f5b40 100644 --- a/web-ui/src/app/components/transaction-details/transaction-details.component.html +++ b/web-ui/src/app/components/transaction-details/transaction-details.component.html @@ -4,66 +4,91 @@
- - -
-
- - -
- -
- - -
-
- - +

{{'label.transaction' | translate}}

+
- - -
+
+ + + + + + + - -
-
-
- - -
-
-
-
- - -
-
- - -
+
+ + + + + + + + + + + + + + + + + + + + + +
{{'label.summary' | translate}}
{{'label.transactionId' | translate}}{{transaction.id}}
{{'label.confirmations' | translate}}{{transaction.confirmations}}
{{'label.blockhash' | translate}} + {{transaction.blockhash}} +
{{'label.blocktime' | translate}}{{transaction.blocktime * 1000 | date:'MMMM d, y, h:mm:ss a'}}
{{'label.fee' | translate}}{{getFee(transaction)}} {{'label.coinName' | translate}}
- -
-
- -
-
-
- - -
-
- - -
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{'label.noInput' | translate}}
{{'label.from' | translate}}
{{'label.coinbase' | translate}}
+ {{transaction.input.address}} + {{transaction.input.value}} {{'label.coinName' | translate}}
{{'label.output' | translate}}
+ {{item.address}} + {{item.value}} {{'label.coinName' | translate}}