diff --git a/themes/edx.org/lms/templates/course_modes/choose.html b/themes/edx.org/lms/templates/course_modes/choose.html index 3e6b60fc07..6b0fc4f2ef 100644 --- a/themes/edx.org/lms/templates/course_modes/choose.html +++ b/themes/edx.org/lms/templates/course_modes/choose.html @@ -1,10 +1,13 @@ <%page expression_filter="h"/> <%inherit file="../main.html" /> +<%namespace name='static' file='/static_content.html'/> <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse +from opaque_keys.edx.keys import CourseKey from openedx.core.djangolib.js_utils import js_escaped_string from openedx.core.djangolib.markup import HTML, Text +from openedx.features.learner_analytics import ENABLE_DASHBOARD_TAB %> <%namespace name='static' file='/static_content.html'/> @@ -61,6 +64,10 @@ from openedx.core.djangolib.markup import HTML, Text new Currency(); +<%block name="header_extras"> + + + <%block name="content"> % if error:
@@ -78,6 +85,14 @@ from openedx.core.djangolib.markup import HTML, Text
+ <% course_key = CourseKey.from_string('course-v1:Fake+Course+Key') %> + % if ENABLE_DASHBOARD_TAB.is_enabled(course_key): + ${static.renderReact( + component="UpsellExperimentModal", + id="upsell-modal", + props={}, + )} + % endif
diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 7b25e71cd6..7d85b2f09c 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -18,6 +18,8 @@ from openedx.core.djangoapps.theming import helpers as theming_helpers from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_string from openedx.core.djangolib.markup import HTML, Text +from openedx.features.learner_analytics import ENABLE_DASHBOARD_TAB + from entitlements.models import CourseEntitlement from student.models import CourseEnrollment %> @@ -36,6 +38,7 @@ from student.models import CourseEnrollment + % endfor @@ -122,6 +125,14 @@ from student.models import CourseEnrollment
+ <% course_key = CourseKey.from_string('course-v1:Fake+Course+Key') %> + % if ENABLE_DASHBOARD_TAB.is_enabled(course_key): + ${static.renderReact( + component="UpsellExperimentModal", + id="upsell-modal", + props={}, + )} + % endif

${_("My Courses")}