From 9115ac034e1c93e3c5e8cdc97c38d4152c688bfd Mon Sep 17 00:00:00 2001 From: Shlok Pandey <31105595+b30wulffz@users.noreply.github.com> Date: Fri, 22 May 2020 13:18:51 +0530 Subject: [PATCH 1/2] Fixed Red/Green issue with stats --- app/pods/components/hackerblocks-stats/template.hbs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/pods/components/hackerblocks-stats/template.hbs b/app/pods/components/hackerblocks-stats/template.hbs index 81b6a6aa6..8cdfacc2b 100644 --- a/app/pods/components/hackerblocks-stats/template.hbs +++ b/app/pods/components/hackerblocks-stats/template.hbs @@ -7,13 +7,14 @@ @autoFire="true" as |stats|>
Current Rank
- {{stats.currentOverallRank}} {{#if (gte stats.currentOverallRank stats.previousOverallRank)}} + {{stats.currentOverallRank}} {{sub stats.currentOverallRank stats.previousOverallRank}} ranks {{else}} + {{stats.currentOverallRank}} {{sub stats.previousOverallRank stats.currentOverallRank}} ranks @@ -22,13 +23,14 @@
Performance
- {{stats.currentMonthScore}} Points {{#if (gte stats.currentMonthScore stats.previousMonthScore)}} + {{stats.currentMonthScore}} Points {{sub stats.currentMonthScore stats.previousMonthScore}} points {{else}} + {{stats.currentMonthScore}} Points {{sub stats.previousMonthScore stats.currentMonthScore}} points From 58ae730980fac621e0acfbd9f5f5c4ae5a248b44 Mon Sep 17 00:00:00 2001 From: Shlok Pandey <31105595+b30wulffz@users.noreply.github.com> Date: Sat, 23 May 2020 09:13:45 +0530 Subject: [PATCH 2/2] Update template.hbs --- app/pods/components/hackerblocks-stats/template.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pods/components/hackerblocks-stats/template.hbs b/app/pods/components/hackerblocks-stats/template.hbs index 8cdfacc2b..1fdf63207 100644 --- a/app/pods/components/hackerblocks-stats/template.hbs +++ b/app/pods/components/hackerblocks-stats/template.hbs @@ -10,13 +10,13 @@ {{#if (gte stats.currentOverallRank stats.previousOverallRank)}} {{stats.currentOverallRank}} - + {{sub stats.currentOverallRank stats.previousOverallRank}} ranks {{else}} {{stats.currentOverallRank}} - + {{sub stats.previousOverallRank stats.currentOverallRank}} ranks {{/if}}