diff --git a/public/templates/bootstrap/dashboard/account_data.tpl b/public/templates/bootstrap/dashboard/account_data.tpl index 1ee39bdd..2da761b1 100755 --- a/public/templates/bootstrap/dashboard/account_data.tpl +++ b/public/templates/bootstrap/dashboard/account_data.tpl @@ -1,4 +1,4 @@ -
+

Account Information

diff --git a/public/templates/bootstrap/dashboard/default.tpl b/public/templates/bootstrap/dashboard/default.tpl index b369372c..78bc2b9d 100755 --- a/public/templates/bootstrap/dashboard/default.tpl +++ b/public/templates/bootstrap/dashboard/default.tpl @@ -1,14 +1,13 @@ {if $smarty.session.AUTHENTICATED|default} - {include file="dashboard/overview.tpl"} {literal}
{/literal} + {include file="dashboard/overview.tpl"} {include file="dashboard/system_stats.tpl"} - {include file="dashboard/round_data.tpl"} - {include file="dashboard/account_data.tpl"} {literal}
{/literal} - {if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API} {include file="dashboard/js_api.tpl"} {else} +{literal}
{/literal} +{literal}
{/literal} {include file="dashboard/js_static.tpl"} {/if} {/if} diff --git a/public/templates/bootstrap/dashboard/js_static.tpl b/public/templates/bootstrap/dashboard/js_static.tpl index af5b94ab..0215a615 100755 --- a/public/templates/bootstrap/dashboard/js_static.tpl +++ b/public/templates/bootstrap/dashboard/js_static.tpl @@ -16,31 +16,24 @@ $(document).ready(function(){ var g1, g2, g3, g4, g5; - var jqPlotShareinfoOptions = { - title: 'Shares', - highlighter: { show: false }, - grid: { drawBorder: false, background: '#fbfbfb', shadow: false }, - seriesColors: [ '#26a4ed', '#ee8310', '#e9e744' ], - seriesDefaults: { - renderer: $.jqplot.DonutRenderer, - rendererOptions:{ - ringMargin: 10, - sliceMargin: 10, - startAngle: -90, - showDataLabels: true, - dataLabels: 'value', - dataLabelThreshold: 0 - } - }, - legend: { show: false } - }; - - // Init shares graph - var plot2 = $.jqplot('shareinfograph', [ - [['your valid', {/literal}{$GLOBAL.userdata.shares.valid}{literal}], ['pool valid', {/literal}{$GLOBAL.roundshares.valid}{literal}]], - [['your invalid', {/literal}{$GLOBAL.userdata.shares.invalid}{literal}], ['pool invalid', {/literal}{$GLOBAL.roundshares.invalid}{literal}]] - ], jqPlotShareinfoOptions); - + Morris.Donut({ + element: 'round-donut-chart', + data: [{ + label: "your valid", + value: {/literal}{$GLOBAL.userdata.shares.valid}{literal} + }, { + label: "your invalid", + value: {/literal}{$GLOBAL.userdata.shares.invalid}{literal} + }, { + label: "pool valid", + value: {/literal}{$GLOBAL.roundshares.valid}{literal} + }, { + label: "pool invalid", + value: {/literal}{$GLOBAL.roundshares.invalid}{literal} + }], + resize: true + }); + g1 = new JustGage({id: "nethashrate", value: parseFloat({/literal}{$GLOBAL.nethashrate}{literal}).toFixed(2), min: 0, max: Math.round({/literal}{$GLOBAL.nethashrate}{literal} * 2), title: "Net Hashrate", gaugeColor: '#6f7a8a', valueFontColor: '#555', shadowOpacity : 0.8, shadowSize : 0, shadowVerticalOffset : 10, label: "{/literal}{$GLOBAL.hashunits.network}{literal}"}); g2 = new JustGage({id: "poolhashrate", value: parseFloat({/literal}{$GLOBAL.hashrate}{literal}).toFixed(2), min: 0, max: Math.round({/literal}{$GLOBAL.hashrate}{literal}* 2), title: "Pool Hashrate", gaugeColor: '#6f7a8a', valueFontColor: '#555', shadowOpacity : 0.8, shadowSize : 0, shadowVerticalOffset : 10, label: "{/literal}{$GLOBAL.hashunits.pool}{literal}"}); g3 = new JustGage({id: "hashrate", value: parseFloat({/literal}{$GLOBAL.userdata.hashrate}{literal}).toFixed(2), min: 0, max: Math.round({/literal}{$GLOBAL.userdata.hashrate}{literal} * 2), title: "Hashrate", gaugeColor: '#6f7a8a', valueFontColor: '#555', shadowOpacity : 0.8, shadowSize : 0, shadowVerticalOffset : 10, label: "{/literal}{$GLOBAL.hashunits.personal}{literal}"}); diff --git a/public/templates/bootstrap/dashboard/overview.tpl b/public/templates/bootstrap/dashboard/overview.tpl index 618f8eba..df451c81 100755 --- a/public/templates/bootstrap/dashboard/overview.tpl +++ b/public/templates/bootstrap/dashboard/overview.tpl @@ -1,5 +1,4 @@ -
-
+

Overview {if $GLOBAL.config.price.currency}{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}: {$GLOBAL.price|number_format:"8"|default:"0"}{/if} / Pool Workers: {$GLOBAL.workers}

@@ -28,5 +27,8 @@ Refresh interval: {$GLOBAL.config.statistics_ajax_refresh_interval|default:"10"} seconds. Hashrate based on shares submitted in the past {$INTERVAL|default:"5"} minutes.
-
-
\ No newline at end of file +
+ {include file="dashboard/round_data.tpl"} + {include file="dashboard/account_data.tpl"} +
+
\ No newline at end of file diff --git a/public/templates/bootstrap/dashboard/round_data.tpl b/public/templates/bootstrap/dashboard/round_data.tpl index 62a2d8fd..2a637097 100755 --- a/public/templates/bootstrap/dashboard/round_data.tpl +++ b/public/templates/bootstrap/dashboard/round_data.tpl @@ -1,11 +1,10 @@ -
+

Round Information

-
-
+
\ No newline at end of file