Commit eff7a4869190db4d79040d80e08930542f4334e6
Committed by
Sergio Oliveira
1 parent
175d00f1
Exists in
master
and in
39 other branches
Created context processor for BROWSERID_ENABLED
Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com> Added browserid context processor in settings Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
colab/home/context_processors.py
@@ -25,3 +25,6 @@ def ribbon(request): | @@ -25,3 +25,6 @@ def ribbon(request): | ||
25 | 'url': getattr(settings, 'RIBBON_URL', url), | 25 | 'url': getattr(settings, 'RIBBON_URL', url), |
26 | } | 26 | } |
27 | } | 27 | } |
28 | + | ||
29 | +def browserid_enabled(request): | ||
30 | + return {'BROWSERID_ENABLED': getattr(settings, 'BROWSERID_ENABLED', False)} |
colab/settings.py
@@ -200,6 +200,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( | @@ -200,6 +200,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( | ||
200 | 'colab.home.context_processors.robots', | 200 | 'colab.home.context_processors.robots', |
201 | 'colab.home.context_processors.ribbon', | 201 | 'colab.home.context_processors.ribbon', |
202 | 'colab.home.context_processors.google_analytics', | 202 | 'colab.home.context_processors.google_analytics', |
203 | + 'colab.home.context_processors.browserid_enabled', | ||
203 | 'colab.planet.context_processors.feedzilla', | 204 | 'colab.planet.context_processors.feedzilla', |
204 | ) | 205 | ) |
205 | 206 |