openedx.features.course_experience.views package#

Submodules#

openedx.features.course_experience.views.course_dates module#

Fragment for rendering the course dates sidebar.

class openedx.features.course_experience.views.course_dates.CourseDatesFragmentView(**kwargs)#

Bases: EdxFragmentView

A fragment to important dates within a course.

render_to_fragment(request, course_id=None, **kwargs)#

Render the course dates fragment.

template_name = 'course_experience/course-dates-fragment.html'#

openedx.features.course_experience.views.course_home module#

Views for the course home page.

openedx.features.course_experience.views.course_home.outline_tab(request, course_id)#

Simply redirects to the MFE outline tab, as this legacy view for the course home/outline no longer exists.

openedx.features.course_experience.views.course_updates module#

Views that handle course updates.

class openedx.features.course_experience.views.course_updates.CourseUpdatesFragmentView(**kwargs)#

Bases: EdxFragmentView

A fragment to render the updates page for a course.

classmethod get_plain_html_updates(request, course)#

Returns any course updates in an html chunk. Used for older implementations and a few tests that store a single html object representing all the updates.

classmethod has_updates(request, course)#
render_to_fragment(request, course_id=None, **kwargs)#

Renders the course’s home page as a fragment.

class openedx.features.course_experience.views.course_updates.CourseUpdatesView(**kwargs)#

Bases: CourseTabView

The course updates page.

get(request, course_id, **kwargs)#

Displays the home page for the specified course.

render_to_fragment(request, course=None, tab=None, **kwargs)#

Renders the course tab to a fragment.

Module contents#