adding sample gauges with static data for now
This commit is contained in:
parent
03fca51af0
commit
c8f7163fa8
@ -1,6 +1,7 @@
|
|||||||
{if $smarty.session.AUTHENTICATED|default}
|
{if $smarty.session.AUTHENTICATED|default}
|
||||||
{assign var=payout_system value=$GLOBAL.config.payout_system}
|
{assign var=payout_system value=$GLOBAL.config.payout_system}
|
||||||
{include file="dashboard/default_$payout_system.tpl"}
|
{include file="dashboard/default_$payout_system.tpl"}
|
||||||
|
{include file="dashboard/gauges.tpl"}
|
||||||
{else}
|
{else}
|
||||||
{include file="login/default.tpl"}
|
{include file="login/default.tpl"}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
29
public/templates/test/dashboard/gauges.tpl
Normal file
29
public/templates/test/dashboard/gauges.tpl
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<article class="module width_half">
|
||||||
|
<header><h3>Gauges</h3></header>
|
||||||
|
<div class="module_content">
|
||||||
|
<div id="hashrate" style="width:150px; height:120px; float: left;"></div>
|
||||||
|
<div id="sharerate" style="width:150px; height:120px; float: right;"></div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
<script>
|
||||||
|
{literal}
|
||||||
|
var g = new JustGage({
|
||||||
|
id: "hashrate",
|
||||||
|
value: {/literal}{$GLOBAL.userdata.hashrate}{literal},
|
||||||
|
min: 0,
|
||||||
|
max: 2000,
|
||||||
|
title: "Hashrate"
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
{literal}
|
||||||
|
var g = new JustGage({
|
||||||
|
id: "sharerate",
|
||||||
|
value: {/literal}{$GLOBAL.userdata.sharerate}{literal},
|
||||||
|
min: 0,
|
||||||
|
max: 150,
|
||||||
|
title: "Sharerate"
|
||||||
|
});
|
||||||
|
{/literal}
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user