]> git.ipfire.org Git - ipfire.org.git/blobdiff - www/webapp/ui_modules.py
wishlist: Update color of progress bars.
[ipfire.org.git] / www / webapp / ui_modules.py
index 7e6af2f2c22f64996898a4d14ef6decdbe5b59d6..931a79facf32172d6eb0f3731351b1adba5e85f4 100644 (file)
@@ -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)