From 3c29be6bc9ff1b0ba9cab61d367936d58be1ebce Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 15 May 2014 11:18:20 +0200 Subject: [PATCH] [FIX] Better number formatting for est block time --- .../plugins/modifier.seconds_to_hhmmss.php | 18 ++++++++++++++++++ public/site_assets/global/js/number_format.js | 13 +++++++++++++ templates/bootstrap/dashboard/js/api.tpl | 4 +--- .../dashboard/round_statistics/pplns/round.tpl | 2 +- .../dashboard/round_statistics/pps/round.tpl | 2 +- .../dashboard/round_statistics/prop/round.tpl | 2 +- 6 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 include/smarty/libs/plugins/modifier.seconds_to_hhmmss.php diff --git a/include/smarty/libs/plugins/modifier.seconds_to_hhmmss.php b/include/smarty/libs/plugins/modifier.seconds_to_hhmmss.php new file mode 100644 index 00000000..08a06417 --- /dev/null +++ b/include/smarty/libs/plugins/modifier.seconds_to_hhmmss.php @@ -0,0 +1,18 @@ +
-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_hhmmss}

Est. Avg. Time per Block

diff --git a/templates/bootstrap/dashboard/round_statistics/pps/round.tpl b/templates/bootstrap/dashboard/round_statistics/pps/round.tpl index 4aa1f226..e11186cb 100644 --- a/templates/bootstrap/dashboard/round_statistics/pps/round.tpl +++ b/templates/bootstrap/dashboard/round_statistics/pps/round.tpl @@ -48,7 +48,7 @@
-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_hhmmss}

Est. Avg. Time per Block

diff --git a/templates/bootstrap/dashboard/round_statistics/prop/round.tpl b/templates/bootstrap/dashboard/round_statistics/prop/round.tpl index e38a55a8..9e5d2c45 100644 --- a/templates/bootstrap/dashboard/round_statistics/prop/round.tpl +++ b/templates/bootstrap/dashboard/round_statistics/prop/round.tpl @@ -83,7 +83,7 @@
-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_hhmmss}

Est. Avg. Time per Block