adding sample gauges with static data for now

This commit is contained in:
Sebastian Grewe 2013-09-13 08:39:17 +02:00
parent 03fca51af0
commit c8f7163fa8
2 changed files with 30 additions and 0 deletions

View File

@ -1,6 +1,7 @@
{if $smarty.session.AUTHENTICATED|default}
{assign var=payout_system value=$GLOBAL.config.payout_system}
{include file="dashboard/default_$payout_system.tpl"}
{include file="dashboard/gauges.tpl"}
{else}
{include file="login/default.tpl"}
{/if}

View 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>