Merge pull request #17217 from edx/tasawer/learner-2437-update-learner-help-link-to-help-center

update help link in header
This commit is contained in:
Tasawer Nawaz
2018-01-24 13:10:16 +05:00
committed by GitHub
3 changed files with 12 additions and 3 deletions

View File

@@ -74,7 +74,6 @@ site_status_msg = get_site_status_msg(course_id)
<![endif]-->
% endif
<%include file="../help_modal.html"/>
% if settings.FEATURES.get('ENABLE_COOKIE_CONSENT', False):
<%include file="../widgets/cookie-consent.html" />
% endif

View File

@@ -7,6 +7,7 @@
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
%>
<%
@@ -57,7 +58,11 @@ from django.utils.translation import ugettext as _
</div>
% endif
<div class="mobile-nav-item hidden-mobile nav-item">
<a class="help-link" href="${get_online_help_info(online_help_token)['doc_url']}" target="_blank">${_("Help")}</a>
% if online_help_token == "instructor":
<a class="help-link" href="${get_online_help_info(online_help_token)['doc_url']}" target="_blank">${_("Help")}</a>
% else:
<a class="help-link" href="${configuration_helpers.get_value('SUPPORT_SITE_LINK', settings.SUPPORT_SITE_LINK)}" target="_blank">${_("Help")}</a>
% endif
</div>
<%include file="user_dropdown.html"/>
</div>

View File

@@ -7,6 +7,7 @@
<%!
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
%>
<%
@@ -61,7 +62,11 @@ from django.utils.translation import ugettext as _
</div>
% endif
<div class="mobile-nav-item hidden-mobile nav-item">
<a href="${get_online_help_info(online_help_token)['doc_url']}" target="_blank">${_("Help")}</a>
% if online_help_token == "instructor":
<a class="help-link" href="${get_online_help_info(online_help_token)['doc_url']}" target="_blank">${_("Help")}</a>
% else:
<a class="help-link" href="${configuration_helpers.get_value('SUPPORT_SITE_LINK', settings.SUPPORT_SITE_LINK)}" target="_blank">${_("Help")}</a>
% endif
</div>
<%include file="user_dropdown.html"/>
</div>