Merge pull request #403 from TheSerapher/issue-312-piechart

Issue 312 piechart
This commit is contained in:
Sebastian Grewe 2013-07-08 05:30:46 -07:00
commit 715680e7dc
3 changed files with 2 additions and 10 deletions

View File

@ -1,7 +1,6 @@
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
<div class="block_content tab_content" id="both" style="padding-left:30px;">
{foreach from=array('area','pie') item=chartType}
<table width="60%" class="stats" rel="{$chartType}">
<table width="60%" class="stats" rel="area">
<caption>Your vs Pool Hashrate</caption>
<thead>
<tr>
@ -30,14 +29,11 @@
<td>{$POOLHASHRATES.$i|default:"0"}</td>
{/for}
{for $i=0 to date('G', time() - 60 * 60)}
<td>{$POOLHASHRATES.$i|default:"0"}</td>
<td>{$POOLHASHRATES.$i - $YOURHASHRATES.$i|default:"0"}</td>
{/for}
</tr>
</tbody>
</table>
<br />
{/foreach}
</div>
{else}
<p><li>No shares available to start calculations</li></p>
{/if}

View File

@ -26,6 +26,4 @@
</tbody>
</table>
</div>
{else}
<p><li>No shares available to start calculations</li></p>
{/if}

View File

@ -26,6 +26,4 @@
</tbody>
</table>
</div>
{else}
<p><li>No shares available to start calculations</li></p>
{/if}