Commit ee036eca by Clinton Blackburn

Updated Analytics Dashboard Message

Message to dashboard now includes the name of the application.
parent b0c2b73d
...@@ -110,8 +110,9 @@ def instructor_dashboard_2(request, course_id): ...@@ -110,8 +110,9 @@ def instructor_dashboard_2(request, course_id):
# Construct a URL to the external analytics dashboard # Construct a URL to the external analytics dashboard
analytics_dashboard_url = '{0}/courses/{1}'.format(settings.ANALYTICS_DASHBOARD_URL, unicode(course_key)) analytics_dashboard_url = '{0}/courses/{1}'.format(settings.ANALYTICS_DASHBOARD_URL, unicode(course_key))
link_start = "<a href=\"{}\" target=\"_blank\">".format(analytics_dashboard_url) link_start = "<a href=\"{}\" target=\"_blank\">".format(analytics_dashboard_url)
analytics_dashboard_message = _("To gain insights into student enrollment and participation, {link_start}visit the new dashboard for course analytics{link_end}.") analytics_dashboard_message = _("To gain insights into student enrollment and participation {link_start}visit {analytics_dashboard_name}, our new dashboard for course analytics{link_end}.")
analytics_dashboard_message = analytics_dashboard_message.format(link_start=link_start, link_end="</a>") analytics_dashboard_message = analytics_dashboard_message.format(
link_start=link_start, link_end="</a>", analytics_dashboard_name=settings.ANALYTICS_DASHBOARD_NAME)
context = { context = {
'course': course, 'course': course,
......
...@@ -1735,6 +1735,7 @@ OPENID_DOMAIN_PREFIX = 'openid:' ...@@ -1735,6 +1735,7 @@ OPENID_DOMAIN_PREFIX = 'openid:'
ANALYTICS_DATA_URL = "" ANALYTICS_DATA_URL = ""
ANALYTICS_DATA_TOKEN = "" ANALYTICS_DATA_TOKEN = ""
ANALYTICS_DASHBOARD_URL = "" ANALYTICS_DASHBOARD_URL = ""
ANALYTICS_DASHBOARD_NAME = PLATFORM_NAME + " Insights"
# TODO (ECOM-16): Remove once the A/B test of auto-registration completes # TODO (ECOM-16): Remove once the A/B test of auto-registration completes
AUTO_REGISTRATION_AB_TEST_EXCLUDE_COURSES = set([ AUTO_REGISTRATION_AB_TEST_EXCLUDE_COURSES = set([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment