From 70032020f5dcafd6bfb494654f4d42b9f2404f9c Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Fri, 8 Jun 2018 13:40:08 -0400 Subject: [PATCH] show diff on address page when tx spends back into the same wallet --- src/Template/Main/address.ctp | 9 ++------- webroot/css/main.css | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Template/Main/address.ctp b/src/Template/Main/address.ctp index bedc1f6..940c7f5 100644 --- a/src/Template/Main/address.ctp +++ b/src/Template/Main/address.ctp @@ -158,13 +158,8 @@ Confirmations, 0, '', ',') ?> InputCount ?> OutputCount ?> - - DebitAmount > 0 && $tx->CreditAmount > 0): ?> -
+CreditAmount, 8, '.', ',') ?> LBC
-
-DebitAmount, 8, '.', ',') ?> LBC
- - DebitAmount > 0) ? '-' : '+'); ?>DebitAmount > 0) ? $tx->DebitAmount : $tx->CreditAmount), 8, '.', ',') ?> LBC - + + CreditAmount - $tx->DebitAmount, 8, '.', ',') ?> LBC diff --git a/webroot/css/main.css b/webroot/css/main.css index 613fa7e..9510485 100644 --- a/webroot/css/main.css +++ b/webroot/css/main.css @@ -295,6 +295,7 @@ footer .content .page-time { position: absolute; right: 12px; bottom: 0px; paddi .tx-table td { vertical-align: top; line-height: 24px } .tx-table td.credit, .tx-table td div.credit { color: #00e676 } .tx-table td.debit, .tx-table td div.debit { color: #ff0000 } +.tx-table td.diff, .tx-table td div.diff{ color: #337ab7 } .tx-table td div.debit { padding-top: 8px } .pagination { width: 1200px; margin: 36px auto 0 auto; cursor: default }