Fix notifications, which I broke.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 14 Aug 2013 20:57:58 +0000 (15:57 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 14 Aug 2013 20:57:58 +0000 (15:57 -0500)
This commit sponsored by Denver Gingerich.  Thank you!

mediagoblin/tools/template.py

index 3cc058c938c17f1a711be0141de34c88a206056f..fa29061114fe252f4aa88254892a997c7cec6bd9 100644 (file)
@@ -94,6 +94,8 @@ def get_jinja_env(template_loader, locale):
     ## but it needs to add stuff to the context.  This is THE WRONG WAY TO DO IT
     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