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

i18n for sys admin and notifications

This commit is contained in:
zhengxie
2012-11-01 15:09:14 +08:00
parent 02a0238b57
commit 5221743afe
18 changed files with 434 additions and 212 deletions

View File

@@ -1879,13 +1879,21 @@ def user_info(request, email):
in_repos = seafserv_threaded_rpc.list_share_repos(email, 'to_email',
-1, -1)
# get nickname
if not Profile.objects.filter(user=email):
nickname = ''
else:
profile = Profile.objects.filter(user=email)[0]
nickname = profile.nickname
return render_to_response(
'userinfo.html', {
'owned_repos': owned_repos,
'quota': quota,
'quota_usage': quota_usage,
"in_repos": in_repos,
'email': email
'email': email,
'nickname': nickname,
}, context_instance=RequestContext(request))
@login_required