1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

Add org user added notification

This commit is contained in:
xiez
2012-07-27 17:54:07 +08:00
parent b517fefde2
commit b1ea10088a
11 changed files with 60 additions and 12 deletions

View File

@@ -697,12 +697,15 @@ def myhome(request):
# user notifications
grpmsg_list = []
grpmsg_reply_list = []
orgmsg_list = []
notes = UserNotification.objects.filter(to_user=request.user.username)
for n in notes:
if n.msg_type == 'group_msg':
grpmsg_list.append(n.detail)
elif n.msg_type == 'grpmsg_reply':
grpmsg_reply_list.append(n.detail)
elif n.msg_type == 'org_msg':
orgmsg_list.append(n.detail)
# my groups
groups = get_personal_groups(email)
@@ -738,6 +741,7 @@ def myhome(request):
"contacts": contacts,
"groups": groups,
"grpmsg_reply_list": grpmsg_reply_list,
"orgmsg_list": orgmsg_list,
"groups_manage": groups_manage,
"groups_join": groups_join,
}, context_instance=RequestContext(request))