Adds a context-sensitive link to learner documentation from the LMS. The base URL defaults to Open edX learner doc and can be overridden with the base URL for edx.org learner doc. Also relabels the tab for support from help to support.
This commit is contained in:
@@ -865,4 +865,9 @@ APP_UPGRADE_CACHE_TIMEOUT = ENV_TOKENS.get('APP_UPGRADE_CACHE_TIMEOUT', APP_UPGR
|
||||
AFFILIATE_COOKIE_NAME = ENV_TOKENS.get('AFFILIATE_COOKIE_NAME', AFFILIATE_COOKIE_NAME)
|
||||
|
||||
############## Settings for Neo4j ############################
|
||||
|
||||
NEO4J_CONFIG = AUTH_TOKENS.get('NEO4J_CONFIG')
|
||||
|
||||
############## Settings for LMS Context Sensitive Help ##############
|
||||
|
||||
DOC_LINK_BASE_URL = ENV_TOKENS.get('DOC_LINK_BASE_URL', DOC_LINK_BASE_URL)
|
||||
|
||||
@@ -2965,3 +2965,7 @@ REDIRECT_CACHE_KEY_PREFIX = 'redirects'
|
||||
|
||||
# This should be set in configuration
|
||||
NEO4J_CONFIG = None
|
||||
|
||||
############## Settings for LMS Context Sensitive Help ##############
|
||||
|
||||
DOC_LINK_BASE_URL = None
|
||||
|
||||
@@ -10,6 +10,30 @@
|
||||
width: 100%;
|
||||
height: 76px;
|
||||
|
||||
.doc-link {
|
||||
position: relative;
|
||||
@include float(right);
|
||||
@include margin(($baseline*0.75), ($baseline*0.75), ($baseline*0.75), ($baseline*0.75));
|
||||
padding: 0;
|
||||
text-transform: none;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0;
|
||||
color: $base-font-color;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
color: $base-font-color;
|
||||
}
|
||||
|
||||
&:visited {
|
||||
text-decoration: none;
|
||||
color: $base-font-color;
|
||||
}
|
||||
}
|
||||
|
||||
.wrapper-header {
|
||||
@include clearfix();
|
||||
height: 40px;
|
||||
|
||||
@@ -15,7 +15,7 @@ from xmodule.tabs import CourseTabList
|
||||
% if settings.FEATURES.get('ENABLE_FEEDBACK_SUBMISSION', False):
|
||||
|
||||
<div class="help-tab">
|
||||
<a href="#help-modal" rel="leanModal" role="button">${_("Help")}</a>
|
||||
<a href="#help-modal" rel="leanModal" role="button">${_("Support")}</a>
|
||||
</div>
|
||||
|
||||
<section id="help-modal" class="modal" aria-hidden="true" role="dialog" tabindex="-1" aria-label="${_("{platform_name} Help").format(platform_name=static.get_platform_name())}">
|
||||
|
||||
@@ -100,6 +100,10 @@ site_status_msg = get_site_status_msg(course_id)
|
||||
|
||||
<%include file="user_dropdown.html"/>
|
||||
|
||||
<a href="${get_online_help_info(online_help_token)['doc_url']}"
|
||||
target="_blank"
|
||||
class="doc-link">${_("Help")}</a>
|
||||
|
||||
% if should_display_shopping_cart_func() and not (course and static.is_request_in_themed_site()): # see shoppingcart.context_processor.user_has_cart_context_processor
|
||||
<ol class="user">
|
||||
<li class="primary">
|
||||
|
||||
Reference in New Issue
Block a user