[UPDATE] change dashboard as requested

This commit is contained in:
iAmShorty 2014-03-11 12:26:32 +01:00
parent 7f012446f0
commit 5a5a5b49c3
13 changed files with 159 additions and 139 deletions

View File

@ -4,6 +4,8 @@
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/overview/default.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/default.tpl"}
</div>
<div class="row">
{include file="dashboard/account_data/default.tpl"}
{include file="dashboard/worker_information/default.tpl"}
</div>

View File

@ -1,26 +0,0 @@
<table class="table borderless m-b-none text-small">
<thead>
<tr>
<th><h4><i class="fa fa-cloud fa-fw"></i> Round Shares</h4></th>
<th><h4><i class="fa fa-thumbs-up fa-fw"></i> Valid</h4></th>
<th><h4><i class="fa fa-thumbs-down fa-fw"></i> Invalid</h4></th>
<th><h4><i class="fa fa-dot-circle-o fa-fw"></i> Efficiency</h4></th>
</tr>
<tr>
<th><h4><i class="fa fa-user fa-fw"></i> My Shares</h4></td>
<th><h4 id="b-yvalid">{$GLOBAL.userdata.shares.valid|number_format}</h4></th>
<th><h4 id="b-yivalid">{$GLOBAL.userdata.shares.invalid|number_format}</h4></th>
<th>
<h4 id="b-yefficiency">{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h4>
</th>
</tr>
<tr>
<th><h4><i class="fa fa-users fa-fw"></i> Pool Shares</h4></th>
<th><h4 id="b-pvalid">{$GLOBAL.roundshares.valid|number_format}</h4></th>
<th><h4 id="b-pivalid">{$GLOBAL.roundshares.invalid|number_format}</h4></th>
<th>
<h4 id="b-pefficiency">{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}<h4>
</th>
</tr>
</thead>
</table>

View File

@ -1,19 +0,0 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h4 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="text-muted">Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h4 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)</p>
<p class="text-muted">Est Next Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h4 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="text-muted">Est. Avg. Time per Block</p>
</div>
</div>
</div>

View File

@ -1,19 +0,0 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h4 font-bold m-t">{$NETWORK.block}</p>
<p class="text-muted">Current Block</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h4 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="text-muted">Of Expected Shares</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h4 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
</div>

View File

@ -1,14 +1,26 @@
<div class="col-lg-8">
<div class="col-lg-6">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-align-left fa-fw"></i> Round statistics
<i class="fa fa-spinner fa-fw"></i> Round statistics
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_header.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_content.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_footer.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
<div class="panel-footer">
<h6>Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds.</h6>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-cloud fa-fw"></i> Share statistics
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
<div class="panel-footer">
<h6>Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds.</h6>
</div>

View File

@ -0,0 +1,36 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h6 font-bold m-t">{$NETWORK.block}</p>
<p class="h6 text-muted">Current Block</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h6 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="h6 text-muted">Of Expected Shares</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h6 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="h6 text-muted">Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h6 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)</p>
<p class="h6 text-muted">Est Next Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h6 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="h6 text-muted">Est. Avg. Time per Block</p>
</div>
</div>
</div>

View File

@ -0,0 +1,25 @@
<table class="table borderless m-b-none text-small">
<thead>
<tr>
<th></th>
<th><span class="pull-right"><h5><i class="fa fa-user fa-fw"></i> Own<h5></th>
<th><span class="pull-right"><h5><i class="fa fa-users fa-fw"></i> Pool</h6></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-check fa-fw"></i> Valid</h6></th>
<th><span class="pull-right"><h5 id="b-yvalid">{$GLOBAL.userdata.shares.valid|number_format}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pvalid">{$GLOBAL.roundshares.valid|number_format}</h5></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-times fa-fw"></i> Invalid</h6></th>
<th><span class="pull-right"><h5 id="b-yivalid">{$GLOBAL.userdata.shares.invalid|number_format}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pivalid">{$GLOBAL.roundshares.invalid|number_format}</h5></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-bolt fa-fw"></i> Efficiency</h5></th>
<th><span class="pull-right"><h5 id="b-yefficiency">{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pefficiency">{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h5></span></th>
</tr>
</thead>
</table>

View File

@ -1,26 +0,0 @@
<table class="table borderless m-b-none text-small">
<thead>
<tr>
<th><h4><i class="fa fa-cloud fa-fw"></i> Round Shares</h4></th>
<th><h4><i class="fa fa-thumbs-up fa-hw"></i> Valid</h4></th>
<th><h4><i class="fa fa-thumbs-down fa-hw"></i> Invalid</h4></th>
<th><h4><i class="fa fa-dot-circle-o fa-hw"></i> Efficiency</h4></th>
</tr>
<tr>
<th><h4><i class="fa fa-user fa-fw"></i> My Shares</h4></td>
<th><h4 id="b-yvalid">{$GLOBAL.userdata.shares.valid|number_format}</h4></th>
<th><h4 id="b-yivalid">{$GLOBAL.userdata.shares.invalid|number_format}</h4></th>
<th>
<h4 id="b-yefficiency">{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h4>
</th>
</tr>
<tr>
<th><h4><i class="fa fa-users fa-fw"></i> Pool Shares</h4></th>
<th><h4 id="b-pvalid">{$GLOBAL.roundshares.valid|number_format}</h4></th>
<th><h4 id="b-pivalid">{$GLOBAL.roundshares.invalid|number_format}</h4></th>
<th>
<h4 id="b-pefficiency">{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}<h4>
</th>
</tr>
</thead>
</table>

View File

@ -1,19 +0,0 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h4 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="text-muted">Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h4 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)</p>
<p class="text-muted">Est Next Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h4 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="text-muted">Est. Avg. Time per Block</p>
</div>
</div>
</div>

View File

@ -1,19 +0,0 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h4 font-bold m-t">{$NETWORK.block}</p>
<p class="text-muted">Current Block</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h4 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="text-muted">Of Expected Shares</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h4 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
</div>

View File

@ -1,16 +1,28 @@
<div class="col-lg-8">
<div class="col-lg-6">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-align-left fa-fw"></i> Round statistics
<i class="fa fa-spinner fa-fw"></i> Round statistics
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_header.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_content.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_footer.tpl"}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
<div class="panel-footer">
Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds.
<h6>Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds.</h6>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<i class="fa fa-cloud fa-fw"></i> Share statistics
</h4>
</div>
{assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
{include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
<div class="panel-footer">
<h6>Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds.</h6>
</div>
</div>
</div>

View File

@ -0,0 +1,36 @@
<div class="panel-footer">
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-th-large fa-2x"></i>
<p id="b-nblock" class="h6 font-bold m-t">{$NETWORK.block}</p>
<p class="h6 text-muted">Current Block</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-bar-chart-o fa-flip-horizontal fa-2x"></i>
<p id="b-roundprogress" class="h6 font-bold m-t">{$ESTIMATES.percent|number_format:"2"}%</p>
<p class="h6 text-muted">Of Expected Shares</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-money fa-2x"></i>
<p id="b-payout" class="h6 font-bold m-t">{$GLOBAL.userdata.estimates.payout|number_format:"8"}</p>
<p class="h6 text-muted">{$GLOBAL.config.currency} Estimated Earnings</p>
</div>
</div>
<div class="row text-center">
<div class="col-xs-4 b-r">
<i class="fa fa-map-marker fa-2x"></i>
<p id="b-diff" class="h6 font-bold m-t">{$NETWORK.difficulty|number_format:"8"}</p>
<p class="h6 text-muted">Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-sitemap fa-2x"></i>
<p id="b-nextdiff" class="h6 font-bold m-t">{$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)</p>
<p class="h6 text-muted">Est Next Difficulty</p>
</div>
<div class="col-xs-4 b-r">
<i class="fa fa-clock-o fa-2x"></i>
<p id="b-esttimeperblock" class="h6 font-bold m-t">{$NETWORK.EstTimePerBlock|seconds_to_words}</p>
<p class="h6 text-muted">Est. Avg. Time per Block</p>
</div>
</div>
</div>

View File

@ -0,0 +1,25 @@
<table class="table borderless m-b-none text-small">
<thead>
<tr>
<th></th>
<th><span class="pull-right"><h5><i class="fa fa-user fa-fw"></i> Own<h5></th>
<th><span class="pull-right"><h5><i class="fa fa-users fa-fw"></i> Pool</h6></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-check fa-fw"></i> Valid</h6></th>
<th><span class="pull-right"><h5 id="b-yvalid">{$GLOBAL.userdata.shares.valid|number_format}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pvalid">{$GLOBAL.roundshares.valid|number_format}</h5></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-times fa-fw"></i> Invalid</h6></th>
<th><span class="pull-right"><h5 id="b-yivalid">{$GLOBAL.userdata.shares.invalid|number_format}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pivalid">{$GLOBAL.roundshares.invalid|number_format}</h5></span></th>
</tr>
<tr>
<th><h5><i class="fa fa-bolt fa-fw"></i> Efficiency</h5></th>
<th><span class="pull-right"><h5 id="b-yefficiency">{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h5></span></th>
<th><span class="pull-right"><h5 id="b-pefficiency">{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}</h5></span></th>
</tr>
</thead>
</table>