diff sat_website/views.py @ 71:a14845624e01

display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
author souliane <souliane@mailoo.org>
date Wed, 27 May 2015 18:56:16 +0200
parents bfa8009f0769
children 651c4049f32b
line wrap: on
line diff
--- a/sat_website/views.py	Wed May 27 14:50:51 2015 +0200
+++ b/sat_website/views.py	Wed May 27 18:56:16 2015 +0200
@@ -74,6 +74,7 @@
                })
 
     context.update(csrf(request))
+    context.update(utils.get_asso_finance_status())
 
     if not category or category == "overview":
         context.update(utils.get_asso_finance_status())
@@ -86,7 +87,6 @@
     elif category == "downloads":
         context["projects_infos"] = utils.get_projects_infos(PROJECTS_INFOS)
     elif category in ("association", "adhesion"):
-        context.update(utils.get_asso_finance_status())
         context.update(utils.get_asso_urls())
     elif category == "adhesion_form":
         if request.method == 'POST':