[FIX] fixed divs in transactions

This commit is contained in:
iAmShorty 2014-03-12 13:22:22 +01:00
parent 3f028a2fdb
commit b3009012a0

View File

@ -37,57 +37,59 @@
<i class="fa fa-clock-o fa-fw"></i> Transaction History <i class="fa fa-clock-o fa-fw"></i> Transaction History
</div> </div>
<div class="panel-body no-padding"> <div class="panel-body no-padding">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-bordered table-hover"> <table class="table table-striped table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
<th>Date</th> <th>Date</th>
<th>TX Type</th> <th>TX Type</th>
<th>Status</th> <th>Status</th>
<th>Payment Address</th> <th>Payment Address</th>
<th>TX #</th> <th>TX #</th>
<th>Block #</th> <th>Block #</th>
<th>Amount</th> <th>Amount</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{section transaction $TRANSACTIONS} {section transaction $TRANSACTIONS}
<tr> <tr>
<td>{$TRANSACTIONS[transaction].id}</td> <td>{$TRANSACTIONS[transaction].id}</td>
<td>{$TRANSACTIONS[transaction].timestamp}</td> <td>{$TRANSACTIONS[transaction].timestamp}</td>
<td>{$TRANSACTIONS[transaction].type}</td> <td>{$TRANSACTIONS[transaction].type}</td>
<td> <td>
{if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR {if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR
$TRANSACTIONS[transaction].type == 'Fee_PPS' OR $TRANSACTIONS[transaction].type == 'Fee_PPS' OR
$TRANSACTIONS[transaction].type == 'Donation_PPS' OR $TRANSACTIONS[transaction].type == 'Donation_PPS' OR
$TRANSACTIONS[transaction].type == 'Debit_MP' OR $TRANSACTIONS[transaction].type == 'Debit_MP' OR
$TRANSACTIONS[transaction].type == 'Debit_AP' OR $TRANSACTIONS[transaction].type == 'Debit_AP' OR
$TRANSACTIONS[transaction].type == 'TXFee' OR $TRANSACTIONS[transaction].type == 'TXFee' OR
$TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations $TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations
}<span class="label label-success">Confirmed</span> }
{else if $TRANSACTIONS[transaction].confirmations == -1}<span class="label label-danger">Orphaned</span> <span class="label label-success">Confirmed</span>
{else}<span class="label label-warning">Unconfirmed</span>{/if} {else if $TRANSACTIONS[transaction].confirmations == -1}
</td> <span class="label label-danger">Orphaned</span>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</a></td> {else}
{if ! $GLOBAL.website.transactionexplorer.disabled} <span class="label label-warning">Unconfirmed</span>
<td><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td> {/if}
{else} </td>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td> <td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</a></td>
{/if} {if ! $GLOBAL.website.transactionexplorer.disabled}
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}<a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$TRANSACTIONS[transaction].height}">{$TRANSACTIONS[transaction].height}</a>{/if}</td> <td><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td> {else}
</tr> <td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
{/if}
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}<a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$TRANSACTIONS[transaction].height}">{$TRANSACTIONS[transaction].height}</a>{/if}</td>
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
</tr>
{/section} {/section}
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="panel-footer"> </div>
<div class="panel-footer">
<h6><b>Debit_AP</b> = Auto Threshold Payment, <b>Debit_MP</b> = Manual Payment, <b>Donation</b> = Donation, <b>Fee</b> = Pool Fees (if applicable)</h6> <h6><b>Debit_AP</b> = Auto Threshold Payment, <b>Debit_MP</b> = Manual Payment, <b>Donation</b> = Donation, <b>Fee</b> = Pool Fees (if applicable)</h6>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<div> </div>