app/soc/views/helper/responses.py
changeset 2393 7fe19ebfe0d3
parent 2358 e5821b87f6e3
child 2835 aff661c7f936
--- a/app/soc/views/helper/responses.py	Thu Jun 04 22:26:24 2009 +0200
+++ b/app/soc/views/helper/responses.py	Thu Jun 04 23:21:33 2009 +0200
@@ -31,6 +31,7 @@
 
 from soc.logic import accounts
 from soc.logic import system
+from soc.logic.helper import timeline
 from soc.logic.models import site
 from soc.logic.models.user import logic as user_logic
 from soc.modules import callback
@@ -137,6 +138,7 @@
   context['site_name'] = settings.site_name
   context['site_notice'] = settings.site_notice
   context['tos_link'] = redirects.getToSRedirect(settings)
+  context['in_maintenance'] = timeline.isActivePeriod(site, 'maintenance')
  
   return context