Merge pull request #403 from TheSerapher/issue-312-piechart
Issue 312 piechart
This commit is contained in:
commit
715680e7dc
@ -1,7 +1,6 @@
|
|||||||
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
|
{if is_array($YOURHASHRATES) && is_array($POOLHASHRATES)}
|
||||||
<div class="block_content tab_content" id="both" style="padding-left:30px;">
|
<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="area">
|
||||||
<table width="60%" class="stats" rel="{$chartType}">
|
|
||||||
<caption>Your vs Pool Hashrate</caption>
|
<caption>Your vs Pool Hashrate</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -30,14 +29,11 @@
|
|||||||
<td>{$POOLHASHRATES.$i|default:"0"}</td>
|
<td>{$POOLHASHRATES.$i|default:"0"}</td>
|
||||||
{/for}
|
{/for}
|
||||||
{for $i=0 to date('G', time() - 60 * 60)}
|
{for $i=0 to date('G', time() - 60 * 60)}
|
||||||
<td>{$POOLHASHRATES.$i|default:"0"}</td>
|
<td>{$POOLHASHRATES.$i - $YOURHASHRATES.$i|default:"0"}</td>
|
||||||
{/for}
|
{/for}
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
{/foreach}
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
|
||||||
<p><li>No shares available to start calculations</li></p>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@ -26,6 +26,4 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
|
||||||
<p><li>No shares available to start calculations</li></p>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@ -26,6 +26,4 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{else}
|
|
||||||
<p><li>No shares available to start calculations</li></p>
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user