equal
deleted
inserted
replaced
70 "comp_tasks": comp_tasks, |
70 "comp_tasks": comp_tasks, |
71 } |
71 } |
72 |
72 |
73 user = request.user |
73 user = request.user |
74 if not user.is_authenticated(): |
74 if not user.is_authenticated(): |
75 return shortcuts.render_to_response("task/browse.html") |
75 return shortcuts.render_to_response("task/browse.html", |
|
76 RequestContext(request, context)) |
76 |
77 |
77 profile = user.get_profile() |
78 profile = user.get_profile() |
78 |
79 |
79 can_approve = True if profile.role in [profile_models.ROLES_CHOICES[0][0], profile_models.ROLES_CHOICES[1][0]] else False |
80 can_approve = True if profile.role in [profile_models.ROLES_CHOICES[0][0], profile_models.ROLES_CHOICES[1][0]] else False |
80 unpub_tasks = taskapp_models.Task.objects.filter(status=taskapp_models.TASK_STATUS_CHOICES[0][0]).exclude(status=taskapp_models.TASK_STATUS_CHOICES[5][0]) |
81 unpub_tasks = taskapp_models.Task.objects.filter(status=taskapp_models.TASK_STATUS_CHOICES[0][0]).exclude(status=taskapp_models.TASK_STATUS_CHOICES[5][0]) |