diff --git a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl index 4cbb931a..afdcfe5a 100644 --- a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl +++ b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl @@ -16,59 +16,55 @@ Difficulty Amount Expected Shares - {if $GLOBAL.config.payout_system == 'pplns'}PPLNS Shares{/if} +{if $GLOBAL.config.payout_system == 'pplns'}PPLNS Shares{/if} Actual Shares Percentage - {assign var=count value=0} - {assign var=totalexpectedshares value=0} - {assign var=totalshares value=0} - {assign var=pplnsshares value=0} - {section block $BLOCKSFOUND} +{assign var=count value=0} +{assign var=totalexpectedshares value=0} +{assign var=totalshares value=0} +{assign var=pplnsshares value=0} +{section block $BLOCKSFOUND} + {assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares} + {assign var="count" value=$count+1} + {if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if} - {assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares} - {assign var="count" value=$count+1} - {if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if} - {if ! $GLOBAL.website.blockexplorer.disabled} +{if ! $GLOBAL.website.blockexplorer.disabled} {$BLOCKSFOUND[block].height} - {else} +{else} {$BLOCKSFOUND[block].height} - {/if} +{/if} - {if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations} +{if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations} Confirmed - {else if $BLOCKSFOUND[block].confirmations == -1} +{else if $BLOCKSFOUND[block].confirmations == -1} Orphan - {else} +{else} {$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left - {/if} +{/if} {if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if} {$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"} {$BLOCKSFOUND[block].difficulty|number_format:"2"} {$BLOCKSFOUND[block].amount|number_format:"2"} - {assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares} - {$BLOCKSFOUND[block].estshares|number_format} +{assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares} + {$BLOCKSFOUND[block].estshares|number_format} - {if $GLOBAL.config.payout_system == 'pplns'} - {$BLOCKSFOUND[block].pplns_shares|number_format} - {/if} +{if $GLOBAL.config.payout_system == 'pplns'}{$BLOCKSFOUND[block].pplns_shares|number_format}{/if} {$BLOCKSFOUND[block].shares|number_format} - {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} {$percentage|number_format:"2"} - {/section} +{/section} Totals {$totalexpectedshares|number_format} - {if $GLOBAL.config.payout_system == 'pplns'} - {$pplnsshares|number_format} - {/if} + {if $GLOBAL.config.payout_system == 'pplns'}{$pplnsshares|number_format}{/if} {$totalshares|number_format} {if $count > 0}{($totalshares / $totalexpectedshares * 100)|number_format:"2"}{else}0{/if} @@ -79,8 +75,8 @@ - + - + - + \ No newline at end of file