[ADD] Price enable/disable to currency/day
This commit is contained in:
parent
4fc9eae9b6
commit
f6425ba3fb
@ -11,8 +11,10 @@
|
||||
<th>Donor</th>
|
||||
<th>User Name</th>
|
||||
<th class="text-right">KH/s</th>
|
||||
{if $GLOBAL.config.price.enabled}
|
||||
<th class="text-right">{$GLOBAL.config.currency}/Day</th>
|
||||
{if $GLOBAL.config.price.currency}<th class="text-right">{$GLOBAL.config.price.currency}/Day</th>{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -25,8 +27,10 @@
|
||||
<td>{if $CONTRIBHASHES[contrib].donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw">{elseif $CONTRIBHASHES[contrib].donate_percent|default:"0" < 2 AND $CONTRIBHASHES[contrib].donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw">{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
|
||||
<td>{if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}</td>
|
||||
<td class="text-right">{$CONTRIBHASHES[contrib].hashrate|number_format}</td>
|
||||
{if $GLOBAL.config.price.enabled}
|
||||
<td class="text-right">{$estday|number_format:"3"}</td>
|
||||
{if $GLOBAL.config.price.currency}<td class="text-right">{($estday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
{/section}
|
||||
{if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.rawhashrate|default:"0" > 0}
|
||||
@ -36,8 +40,10 @@
|
||||
<td>{if $GLOBAL.userdata.donate_percent|default:"0" >= 2}<i class="fa fa-trophy fa-fw"></i>{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}<i class="fa fa-star-o fa-fw"></i>{else}<i class="fa fa-ban fa-fw"></i>{/if}</td>
|
||||
<td>{$GLOBAL.userdata.username|escape}</td>
|
||||
<td class="text-right">{$GLOBAL.userdata.rawhashrate|number_format}</td>
|
||||
{if $GLOBAL.config.price.enabled}
|
||||
<td class="text-right">{$myestday|number_format:"3"|default:"n/a"}</td>
|
||||
{if $GLOBAL.config.price.currency}<td class="text-right">{($myestday * $GLOBAL.price)|default:"n/a"|number_format:"4"}</td>{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user