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

Modify home page

This commit is contained in:
xiez
2012-09-22 19:17:22 +08:00
parent b16b7ece18
commit db365fc35d
6 changed files with 11 additions and 16 deletions

View File

@@ -773,6 +773,9 @@ def myhome(request):
# Get all personal groups used in autocomplete.
groups = get_personal_groups(-1, -1)
# Get all personal groups I joined.
joined_groups = get_personal_groups_by_user(request.user.username)
# get nickname
if not Profile.objects.filter(user=request.user.username):
nickname = ''
@@ -788,6 +791,7 @@ def myhome(request):
"in_repos": in_repos,
"contacts": contacts,
"groups": groups,
"joined_groups": joined_groups,
"notes": notes,
"grpmsg_list": grpmsg_list,
"grpmsg_reply_list": grpmsg_reply_list,