Adding a message in the Course About page depending on the course mode

Dear Sir / Madam,

I would like some assistance in the following:

I am running OpenEDX Hawtorn.2 release platform and I have my course about pages using the file ‘/edx/app/edxapp/edx-platform/lms/templates/courseware/course_about.html’.

I want to add a message in the course-sidebar area of the page depending on the course mode of the respective course the user is browsing. I am using honor and verified courses and I want some assistance on how to get the mode of the course in order to show different messages depending on the mode.

I know I can get course information in various ways, such as: {course_price} or {course.display_number_with_default | h} or ${get_course_about_section(request, course, “effort”)} but I don’t know how I can get the course modes.

I would be grateful if anyone could assist me on this.

Best Regards,