]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - webapp/ui_modules.py
Massive web site update
[people/shoehn/ipfire.org.git] / webapp / ui_modules.py
index ee54c5da7f3462368a4049853fad1b75bc2e136d..a18b95db7d83dc762fbb2c49da83278a60fa4de4 100644 (file)
@@ -244,10 +244,7 @@ class NewsYearNavigationModule(UIModule):
 
 class PlanetSearchBoxModule(UIModule):
        def render(self, query=None):
-               years = self.planet.get_years()
-
-               return self.render_string("modules/planet/search-box.html",
-                       query=query, years=years)
+               return self.render_string("modules/planet/search-box.html", query=query)
 
 
 class SidebarItemModule(UIModule):
@@ -490,3 +487,11 @@ class DonationButtonModule(UIModule):
 
                # If anything goes wrong, fall back to GB
                return "GB"
+
+
+class DonationInputBoxModule(DonationButtonModule):
+       def render(self):
+               currencies = ("EUR", "USD", "GBP", "CHF", "AUD", "NZD", "CAD")
+
+               return self.render_string("modules/donation-input-box.html",
+                       currencies=currencies, lc=self.lc)