Fixes DOC-3360 to make help context-sensitive

This commit is contained in:
Alison Hodges
2016-09-26 10:16:53 -04:00
parent 663fbbbaa0
commit 2f5362f80a
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
<%page expression_filter="h"/>
<%inherit file="main.html" />
<%def name="online_help_token()"><% return "learnerdashboard" %></%def>
<%namespace name='static' file='static_content.html'/>
<%!
from django.utils.translation import ugettext as _

View File

@@ -1,5 +1,5 @@
## mako
<%page expression_filter="h"/>
<%page expression_filter="h" args="online_help_token"/>
<%namespace name='static' file='static_content.html'/>
<%namespace file='main.html' import="login_query"/>
<%!
@@ -104,7 +104,7 @@ 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']}"
<a href="${get_online_help_info(online_help_token)['doc_url']}"
target="_blank"
class="doc-link">${_("Help")}</a>