From f80648e1fd847db1d6109f4695f3cc3c90e3dba9 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 28 Jun 2013 22:00:46 +0200 Subject: [PATCH] proper number format for invalid % --- public/templates/mmcFE/global/sidebar.tpl | 4 ++-- public/templates/mmcFE/global/sidebar_pps.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/templates/mmcFE/global/sidebar.tpl b/public/templates/mmcFE/global/sidebar.tpl index 38616226..0c50e577 100644 --- a/public/templates/mmcFE/global/sidebar.tpl +++ b/public/templates/mmcFE/global/sidebar.tpl @@ -33,11 +33,11 @@ Pool Invalid - {$GLOBAL.roundshares.invalid|number_format} ({100 / $GLOBAL.roundshares.valid * $GLOBAL.roundshares.invalid}%) + {$GLOBAL.roundshares.invalid|number_format} ({(100 / $GLOBAL.roundshares.valid * $GLOBAL.roundshares.invalid)|number_format:"2"}%) Your Invalid - {$GLOBAL.userdata.shares.invalid|number_format} ({100 / $GLOBAL.roundshares.valid * $GLOBAL.userdata.shares.invalid}%) + {$GLOBAL.userdata.shares.invalid|number_format} ({(100 / $GLOBAL.roundshares.valid * $GLOBAL.userdata.shares.invalid)|number_format:"2"}%) {$GLOBAL.config.currency} Round Estimate diff --git a/public/templates/mmcFE/global/sidebar_pps.tpl b/public/templates/mmcFE/global/sidebar_pps.tpl index f8e7476a..dcd436d5 100644 --- a/public/templates/mmcFE/global/sidebar_pps.tpl +++ b/public/templates/mmcFE/global/sidebar_pps.tpl @@ -30,11 +30,11 @@ Pool Invalid - {$GLOBAL.roundshares.invalid|number_format} ({100 / $GLOBAL.roundshares.valid * $GLOBAL.roundshares.invalid}%) + {$GLOBAL.roundshares.invalid|number_format} ({(100 / $GLOBAL.roundshares.valid * $GLOBAL.roundshares.invalid)|number_format:"2"}%) Your Invalid - {$GLOBAL.userdata.shares.invalid|number_format} ({100 / $GLOBAL.roundshares.valid * $GLOBAL.userdata.shares.invalid}%) + {$GLOBAL.userdata.shares.invalid|number_format} ({(100 / $GLOBAL.roundshares.valid * $GLOBAL.userdata.shares.invalid)|number_format:"2"}%)   {$GLOBAL.config.currency} Estimates