'Displays the user\'s bookmarks for the specified course.
Arguments:
request: HTTP request
course_id (unicode): course id'

@method_decorator(login_required)
@method_decorator(ensure_csrf_cookie)
@method_decorator(cache_control(no_cache=True, no_store=True, must_revalidate=True))
@method_decorator(ensure_valid_course_key)
def get(self, request, course_id):

    course_key = CourseKey.from_string(course_id)
    course = get_course_with_access(request.user, 'load', course_key, check_if_enrolled=True)
    course_url_name = default_course_url_name(course.id)
    course_url = reverse(course_url_name, kwargs={'course_id': unicode(course.id)})
    bookmarks_fragment = CourseBookmarksFragmentView().render_to_fragment(request, course_id=course_id)
    context = {'csrf': csrf(request)['csrf_token'], 'course': course, 'supports_preview_menu': True, 'course_url': course_url, 'bookmarks_fragment': bookmarks_fragment, 'disable_courseware_js': True, 'uses_pattern_library': True}
    return render_to_response('course_bookmarks/course-bookmarks.html', context)
