add profile page, listing groups and teams

This commit is contained in:
Élie Bouttier 2014-08-07 19:17:19 -07:00
parent 4101c84e26
commit de137b0df9
4 changed files with 52 additions and 0 deletions

View file

@ -8,6 +8,17 @@ from issue.forms import *
import shlex
def profile(request):
user = User.objects.get(username=request.user)
c = {
'groups': user.groups.all(),
'teams': user.teams.all(),
}
return render(request, 'issue/profile.html', c)
def project_list(request):
if not request.projects.exists():