aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/template.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-08-14 15:57:58 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-08-14 15:57:58 -0500
commit29cd702e4776811a96c3c088bd9ba8fc6f9176f0 (patch)
treecf26d483904985d1509546c5068697a8680b60ba /mediagoblin/tools/template.py
parent7949d88a751e52a2e0aef42e4801e17283556467 (diff)
downloadmediagoblin-29cd702e4776811a96c3c088bd9ba8fc6f9176f0.tar.lz
mediagoblin-29cd702e4776811a96c3c088bd9ba8fc6f9176f0.tar.xz
mediagoblin-29cd702e4776811a96c3c088bd9ba8fc6f9176f0.zip
Fix notifications, which I broke.
This commit sponsored by Denver Gingerich. Thank you!
Diffstat (limited to 'mediagoblin/tools/template.py')
-rw-r--r--mediagoblin/tools/template.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py
index 3cc058c9..fa290611 100644
--- a/mediagoblin/tools/template.py
+++ b/mediagoblin/tools/template.py
@@ -95,6 +95,8 @@ def get_jinja_env(template_loader, locale):
from mediagoblin import notifications
template_env.globals['get_notifications'] = notifications.get_notifications
template_env.globals[
+ 'get_notification_count'] = notifications.get_notification_count
+ template_env.globals[
'get_comment_subscription'] = notifications.get_comment_subscription
if exists(locale):