fixed combined debit and credit display for addresses

This commit is contained in:
Akinwale Ariwodola 2017-06-13 23:39:40 +01:00
parent 63a3dfaac0
commit 5558a38106
2 changed files with 4 additions and 4 deletions

View file

@ -178,8 +178,8 @@
<td class="right"><?php echo $tx->OutputCount ?></td>
<td class="right<?php echo ' ' . (($tx->DebitAmount > 0 && $tx->CreditAmount > 0) ? '' : (($tx->DebitAmount > 0) ? 'debit' : 'credit')) ?>">
<?php if ($tx->DebitAmount > 0 && $tx->CreditAmount > 0): ?>
<span class="credit"><?php echo number_format($tx->CreditAmount, 8, '.', '') ?></span>
<span class="debit"><?php echo number_format($tx->DebitAmount, 8, '.', '') ?></span>
<div class="credit">+<?php echo number_format($tx->CreditAmount, 8, '.', '') ?></div>
<div class="debit">-<?php echo number_format($tx->DebitAmount, 8, '.', '') ?></div>
<?php else: ?>
<?php echo (($tx->DebitAmount > 0) ? '-' : '+'); ?><?php echo number_format((($tx->DebitAmount > 0) ? $tx->DebitAmount : $tx->CreditAmount), 8, '.', '') ?> LBC
<?php endif; ?>

View file

@ -161,7 +161,7 @@ footer .content .page-time { position: absolute; right: 12px; bottom: 0px; paddi
.recent-transactions { width: 1200px; margin: 48px auto 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.175); border: 1px solid rgba(0,0,0,.15); padding: 36px; cursor: default }
.tx-table td { vertical-align: top }
.tx-table td.credit, .tx-table td span.credit { color: #00e676 }
.tx-table td.debit, .tx-table td span.debit { color: #ff0000 }
.tx-table td.credit, .tx-table td div.credit { color: #00e676 }
.tx-table td.debit, .tx-table td div.debit { color: #ff0000 }
.clear { clear: both }