From: Michael Tremer Date: Fri, 7 Dec 2012 08:28:52 +0000 (+0100) Subject: wishlist: Update color of progress bars. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f60b79ce0b105333283301161648c2c4b036f352;p=ipfire.org.git wishlist: Update color of progress bars. --- 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)