[UPDATE] bringing back cell colors for confirmed/unconfirmed/orphan

This commit is contained in:
iAmShorty 2014-03-02 15:04:27 +01:00
parent 409fc0f7e0
commit 8751610ed8
3 changed files with 13 additions and 19 deletions

View File

@ -89,7 +89,6 @@
<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>
{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
@ -97,10 +96,9 @@
$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="confirmed">Confirmed</span> }<td class="success">Confirmed</td>
{else if $TRANSACTIONS[transaction].confirmations == -1}<span class="orphan">Orphaned</span> {else if $TRANSACTIONS[transaction].confirmations == -1}<td class="danger">Orphaned</td>
{else}<span class="unconfirmed">Unconfirmed</span>{/if} {else}<td class="warning">Unconfirmed</td>{/if}
</td>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|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 ! $GLOBAL.website.transactionexplorer.disabled} {if ! $GLOBAL.website.transactionexplorer.disabled}
<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><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>

View File

@ -100,7 +100,6 @@
<td>{$TRANSACTIONS[transaction].username}</td> <td>{$TRANSACTIONS[transaction].username}</td>
<td>{$TRANSACTIONS[transaction].timestamp}</td> <td>{$TRANSACTIONS[transaction].timestamp}</td>
<td>{$TRANSACTIONS[transaction].type}</td> <td>{$TRANSACTIONS[transaction].type}</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
@ -108,10 +107,9 @@
$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="confirmed">Confirmed</span> }<td class="success">Confirmed</td>
{else if $TRANSACTIONS[transaction].confirmations == -1}<span class="orphan">Orphaned</span> {else if $TRANSACTIONS[transaction].confirmations == -1}<td class="danger">Orphaned</td>
{else}<span class="unconfirmed">Unconfirmed</span>{/if} {else}<td class="warning">Unconfirmed</td>{/if}
</td>
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|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 ! $GLOBAL.website.transactionexplorer.disabled} {if ! $GLOBAL.website.transactionexplorer.disabled}
<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><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>

View File

@ -36,15 +36,13 @@
{else} {else}
<td>{$BLOCKSFOUND[block].height}</td> <td>{$BLOCKSFOUND[block].height}</td>
{/if} {/if}
<td> {if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}
{if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations} <td class="success">Confirmed</td>
<span class="confirmed">Confirmed</span> {else if $BLOCKSFOUND[block].confirmations == -1}
{else if $BLOCKSFOUND[block].confirmations == -1} <td class="danger">Orphan</td>
<span class="orphan">Orphan</span> {else}
{else} <td class="warning">{$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left</td>
<span class="unconfirmed">{$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left</span> {/if}
{/if}
</td>
<td>{if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}</td> <td>{if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}</td>
<td>{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td> <td>{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}</td>
<td>{$BLOCKSFOUND[block].difficulty|number_format:"2"}</td> <td>{$BLOCKSFOUND[block].difficulty|number_format:"2"}</td>