From 016da6cd61bc20261fbe2db658ee156fd3fac35c Mon Sep 17 00:00:00 2001 From: Yefta Sutanto Date: Thu, 30 Jan 2014 00:12:34 +0700 Subject: [PATCH 1/3] Update sidebar_pplns.tpl Fixing "Your Invalid" percentage calculation --- public/templates/mobile/global/sidebar_pplns.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mobile/global/sidebar_pplns.tpl b/public/templates/mobile/global/sidebar_pplns.tpl index 7c25728b..140cfe50 100644 --- a/public/templates/mobile/global/sidebar_pplns.tpl +++ b/public/templates/mobile/global/sidebar_pplns.tpl @@ -39,7 +39,7 @@ Your Invalid - {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%){/if} + {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / $GLOBAL.userdata.shares.valid * 100)|number_format:"2"}%){/if} {$GLOBAL.config.currency} Round Estimate From 0a9398b99e1bb5d9f6d3a379cbf2e500294c5b7d Mon Sep 17 00:00:00 2001 From: Yefta Sutanto Date: Thu, 30 Jan 2014 00:16:45 +0700 Subject: [PATCH 2/3] Update sidebar_pps.tpl --- public/templates/mobile/global/sidebar_pps.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mobile/global/sidebar_pps.tpl b/public/templates/mobile/global/sidebar_pps.tpl index 71ada55c..ea7605bd 100644 --- a/public/templates/mobile/global/sidebar_pps.tpl +++ b/public/templates/mobile/global/sidebar_pps.tpl @@ -29,7 +29,7 @@ Your Invalid - {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%){/if} + {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / $GLOBAL.userdata.shares.valid * 100)|number_format:"2"}%){/if}   {$GLOBAL.config.currency} Estimates From 0bd16062075e6d5f344ad8750d5b3c7965442e28 Mon Sep 17 00:00:00 2001 From: Yefta Sutanto Date: Thu, 30 Jan 2014 00:17:20 +0700 Subject: [PATCH 3/3] Update sidebar_prop.tpl Fixing "Your Invalid" percentage calculation --- public/templates/mobile/global/sidebar_prop.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mobile/global/sidebar_prop.tpl b/public/templates/mobile/global/sidebar_prop.tpl index 5ab614a2..50663dcb 100644 --- a/public/templates/mobile/global/sidebar_prop.tpl +++ b/public/templates/mobile/global/sidebar_prop.tpl @@ -29,7 +29,7 @@ Your Invalid - {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%){/if} + {$GLOBAL.userdata.shares.invalid|number_format}{if $GLOBAL.roundshares.valid > 0} ({($GLOBAL.userdata.shares.invalid / $GLOBAL.userdata.shares.valid * 100)|number_format:"2"}%){/if}