diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index 76f17fb53d..59fa5d69e1 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -84,7 +84,8 @@ def gradebook(request, course_id): } for student in enrolled_students] - return render_to_response('gradebook.html', {'students': student_info, 'course': course}) + return render_to_response('gradebook.html', {'students': student_info, + 'course': course, 'course_id': course_id}) @login_required diff --git a/lms/templates/gradebook.html b/lms/templates/gradebook.html index e6f92c50b3..5b88a7f2b6 100644 --- a/lms/templates/gradebook.html +++ b/lms/templates/gradebook.html @@ -1,4 +1,5 @@ <%inherit file="main.html" /> +<%! from django.core.urlresolvers import reverse %> <%namespace name='static' file='static_content.html'/> <%block name="js_extra"> @@ -59,7 +60,10 @@ %for student in students: