From e86f6703e32e7820548e1c31e8491c9de6e739b4 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 11 Mar 2014 09:37:00 +0100 Subject: [PATCH] [CLONE] Copied prop dashboard to PPLNS for @iAmShorty to play with --- .../round_statistics/pplns/_content.tpl | 26 +++++++++++++++++++ .../round_statistics/pplns/_footer.tpl | 19 ++++++++++++++ .../round_statistics/pplns/_header.tpl | 19 ++++++++++++++ .../round_statistics/pplns/default.tpl | 16 ++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pplns/_content.tpl create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pplns/_footer.tpl create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pplns/_header.tpl create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pplns/default.tpl diff --git a/public/templates/bootstrap/dashboard/round_statistics/pplns/_content.tpl b/public/templates/bootstrap/dashboard/round_statistics/pplns/_content.tpl new file mode 100644 index 00000000..b59261fa --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pplns/_content.tpl @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + +

Round Shares

Valid

Invalid

Efficiency

My Shares

+

{$GLOBAL.userdata.shares.valid|number_format}

{$GLOBAL.userdata.shares.invalid|number_format}

+

{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}

+

Pool Shares

{$GLOBAL.roundshares.valid|number_format}

{$GLOBAL.roundshares.invalid|number_format}

+

{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}

+

diff --git a/public/templates/bootstrap/dashboard/round_statistics/pplns/_footer.tpl b/public/templates/bootstrap/dashboard/round_statistics/pplns/_footer.tpl new file mode 100644 index 00000000..13fce496 --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pplns/_footer.tpl @@ -0,0 +1,19 @@ + diff --git a/public/templates/bootstrap/dashboard/round_statistics/pplns/_header.tpl b/public/templates/bootstrap/dashboard/round_statistics/pplns/_header.tpl new file mode 100644 index 00000000..5e1d2b05 --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pplns/_header.tpl @@ -0,0 +1,19 @@ + diff --git a/public/templates/bootstrap/dashboard/round_statistics/pplns/default.tpl b/public/templates/bootstrap/dashboard/round_statistics/pplns/default.tpl new file mode 100644 index 00000000..cef97314 --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pplns/default.tpl @@ -0,0 +1,16 @@ +
+
+
+

+ Round statistics +

+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system} + {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_header.tpl"} + {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_content.tpl"} + {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/_footer.tpl"} + +
+