style fixes for debit and credit amounts on address page

This commit is contained in:
Akinwale Ariwodola 2017-06-14 00:58:00 +00:00
parent 5558a38106
commit 05538f1b70
3 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
cd /var/www/lbry.block.ng/cron cd /var/www/lbry.block.ng/cron
php blockstuff.php php -d extension=pthreads.so blockstuff.php

View file

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

View file

@ -160,8 +160,9 @@ footer .content .page-time { position: absolute; right: 12px; bottom: 0px; paddi
.recent-transactions h3 { font-weight: 300; margin: 0; margin-bottom: 12px } .recent-transactions h3 { font-weight: 300; margin: 0; margin-bottom: 12px }
.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 } .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 { vertical-align: top; line-height: 24px }
.tx-table td.credit, .tx-table td div.credit { color: #00e676 } .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.debit, .tx-table td div.debit { color: #ff0000 }
.tx-table td div.debit { padding-top: 8px }
.clear { clear: both } .clear { clear: both }