## mako <%page expression_filter="h" args="online_help_token"/> <%namespace name='static' file='../static_content.html'/> <%namespace file='../main.html' import="login_query"/> <%! from django.urls import reverse from django.utils.translation import gettext as _ from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers %> <% show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') self.real_user = getattr(user, 'real_user', user) enable_help_link = settings.FEATURES.get('ENABLE_HELP_LINK') 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 %>