From a570eb500b114e2d35ff63bc0d52979670cfbe71 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 22 Jun 2018 07:16:24 -0400 Subject: [PATCH] Use context help in the LMS for Open edX --- lms/templates/header/navbar-authenticated.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lms/templates/header/navbar-authenticated.html b/lms/templates/header/navbar-authenticated.html index 332522828a..3e0fdb8b2f 100644 --- a/lms/templates/header/navbar-authenticated.html +++ b/lms/templates/header/navbar-authenticated.html @@ -14,6 +14,16 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff self.real_user = getattr(user, 'real_user', user) + + support_link = configuration_helpers.get_value('SUPPORT_SITE_LINK', settings.SUPPORT_SITE_LINK) + doc_link = get_online_help_info(online_help_token)['doc_url'] + + if online_help_token == "instructor": + help_link = doc_link + elif support_link: + help_link = support_link + else: + help_link = doc_link %> % endif <%include file="user_dropdown.html"/>