@ensure_csrf_cookie
@ensure_valid_course_key
def static_tab(request, course_id, tab_slug):
 course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 course = get_course_with_access(request.user, 'load', course_key)
 tab = CourseTabList.get_tab_by_slug(course.tabs, tab_slug)
 if (tab is None):
  raise Http404
 contents = get_static_tab_contents(request, course, tab)
 if (contents is None):
  raise Http404
 return render_to_response('courseware/static_tab.html', {'course': course, 'tab': tab, 'tab_contents': contents})

@ ensure_csrf_cookie @ ensure_valid_course_key def static_tab ( request , course_id , tab_slug ) : course_key = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) course = get_course_with_access ( request . user , 'load' , course_key ) tab = CourseTabList . get_tab_by_slug ( course . tabs , tab_slug ) if ( tab is None ) : raise Http404 contents = get_static_tab_contents ( request , course , tab ) if ( contents is None ) : raise Http404 return render_to_response ( 'courseware/static_tab.html' , { 'course' : course , 'tab' : tab , 'tab_contents' : contents } )
display the courses tab with the given name .