From a00b84721abace9cc777d2cc5a7f5d4ba6ba9adf Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 22 Mar 2014 07:36:13 +0100 Subject: [PATCH] [DRAFT] PPS Dashboard --- .../round_statistics/pps/default.tpl | 22 ++++++++ .../dashboard/round_statistics/pps/round.tpl | 55 +++++++++++++++++++ .../dashboard/round_statistics/pps/shares.tpl | 47 ++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pps/default.tpl create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl create mode 100644 public/templates/bootstrap/dashboard/round_statistics/pps/shares.tpl diff --git a/public/templates/bootstrap/dashboard/round_statistics/pps/default.tpl b/public/templates/bootstrap/dashboard/round_statistics/pps/default.tpl new file mode 100644 index 00000000..d5c4927a --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pps/default.tpl @@ -0,0 +1,22 @@ +
+
+
+

+ Round Information +

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

+ Share Information +

+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system} + {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"} +
+
diff --git a/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl new file mode 100644 index 00000000..aef81206 --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl @@ -0,0 +1,55 @@ + diff --git a/public/templates/bootstrap/dashboard/round_statistics/pps/shares.tpl b/public/templates/bootstrap/dashboard/round_statistics/pps/shares.tpl new file mode 100644 index 00000000..043df82d --- /dev/null +++ b/public/templates/bootstrap/dashboard/round_statistics/pps/shares.tpl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + +
Own
Pool
Valid
+
+
{$GLOBAL.userdata.shares.valid|number_format}
+
+
+
+
{$GLOBAL.roundshares.valid|number_format}
+
+
Invalid
+
+
{$GLOBAL.userdata.shares.invalid|number_format}
+
+
+
+
{$GLOBAL.roundshares.invalid|number_format}
+
+
Efficiency
+
+
{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}
+
+
+
+
{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}
+
+