[UPDATE] Formatting

This commit is contained in:
Sebastian Grewe 2014-03-01 17:55:12 +01:00
parent 0445011a79
commit aaf5d6ae58

View File

@ -27,10 +27,10 @@
{assign var=totalshares value=0} {assign var=totalshares value=0}
{assign var=pplnsshares value=0} {assign var=pplnsshares value=0}
{section block $BLOCKSFOUND} {section block $BLOCKSFOUND}
<tr>
{assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares} {assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares}
{assign var="count" value=$count+1} {assign var="count" value=$count+1}
{if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if} {if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if}
<tr>
{if ! $GLOBAL.website.blockexplorer.disabled} {if ! $GLOBAL.website.blockexplorer.disabled}
<td><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td> <td><a href="{$smarty.server.SCRIPT_NAME}?page=statistics&action=round&height={$BLOCKSFOUND[block].height}">{$BLOCKSFOUND[block].height}</a></td>
{else} {else}
@ -53,7 +53,9 @@
{assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares} {assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares}
{$BLOCKSFOUND[block].estshares|number_format} {$BLOCKSFOUND[block].estshares|number_format}
</td> </td>
{if $GLOBAL.config.payout_system == 'pplns'}<td>{$BLOCKSFOUND[block].pplns_shares|number_format}</td>{/if} {if $GLOBAL.config.payout_system == 'pplns'}
<td>{$BLOCKSFOUND[block].pplns_shares|number_format}</td>
{/if}
<td>{$BLOCKSFOUND[block].shares|number_format}</td> <td>{$BLOCKSFOUND[block].shares|number_format}</td>
<td style="padding-right: 25px;"> <td style="padding-right: 25px;">
{math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares} {math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
@ -64,7 +66,9 @@
<tr> <tr>
<td colspan="6"><b>Totals</b></td> <td colspan="6"><b>Totals</b></td>
<td>{$totalexpectedshares|number_format}</td> <td>{$totalexpectedshares|number_format}</td>
{if $GLOBAL.config.payout_system == 'pplns'}<td>{$pplnsshares|number_format}</td>{/if} {if $GLOBAL.config.payout_system == 'pplns'}
<td>{$pplnsshares|number_format}</td>
{/if}
<td>{$totalshares|number_format}</td> <td>{$totalshares|number_format}</td>
<td style="padding-right: 25px;">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td> <td style="padding-right: 25px;">{if $count > 0}<font color="{if (($totalshares / $totalexpectedshares * 100) <= 100)}green{else}red{/if}">{($totalshares / $totalexpectedshares * 100)|number_format:"2"}</font>{else}0{/if}</td>
</tr> </tr>