From f60b79ce0b105333283301161648c2c4b036f352 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 7 Dec 2012 09:28:52 +0100 Subject: [PATCH] wishlist: Update color of progress bars. --- www/webapp/ui_modules.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index 7e6af2f2..931a79fa 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -313,12 +313,10 @@ class WishlistModule(UIModule): class WishModule(UIModule): def render(self, wish, short=False): - progress_bar = "progress-success" + progress_bar = "progress-warning" - if wish.percentage >= 90: - progress_bar = "progress-danger" - elif wish.percentage >= 50: - progress_bar = "progress-warning" + if wish.percentage >= 100: + progress_bar = "progress-success" return self.render_string("wishlist/modules/wish.html", wish=wish, short=short, progress_bar=progress_bar) -- 2.47.3