2012-01-15 19:56:26 +00:00
|
|
|
def is_preview(request):
|
|
|
|
from django.conf import settings
|
2012-10-23 14:24:16 +00:00
|
|
|
return {'jquery_home': settings.JQUERY_HOME, 'jquery_ui_home': settings.JQUERY_UI_HOME, 'is_preview': settings.IS_PREVIEW, 'show_google_analytics': settings.SHOW_GOOGLE_ANALYTICS}
|
2012-03-29 19:34:03 +00:00
|
|
|
|
|
|
|
def count_unseen(request):
|
2012-03-29 20:25:35 +00:00
|
|
|
from notification.models import Notice, NoticeManager
|
2012-03-29 19:34:03 +00:00
|
|
|
if request.user.is_anonymous():
|
|
|
|
count = 0
|
|
|
|
else:
|
2012-03-29 20:25:35 +00:00
|
|
|
count = Notice.objects.unseen_count_for(request.user)
|
|
|
|
return {'unseen_count': count}
|