Feature dashboard context processor
Change company name in footer via settings file and display notifications on all pages.
closes #50 (closed)
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
1 from django.conf import settings 2 3 4 def notifications(request): 5 count = (request.user.notification_set.filter(status="new").count() 6 if request.user.is_authenticated() else None) 7 return { 8 'NEW_NOTIFICATIONS_COUNT': count -
Owner
this can be removed from index view (circle/dashboard/views.py#L109)
-
-
Owner
👍 merge it!