diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index cc8daffd47..36309e144f 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -78,10 +78,7 @@ from openedx.core.djangolib.markup import HTML, Text
-
-

${_("My Courses")}

-
- + <%include file="learner_dashboard/_dashboard_navigation_courses.html"/> % if len(course_enrollments) > 0:
    diff --git a/lms/templates/learner_dashboard/_dashboard_navigation_courses.html b/lms/templates/learner_dashboard/_dashboard_navigation_courses.html new file mode 100644 index 0000000000..8dab520cfd --- /dev/null +++ b/lms/templates/learner_dashboard/_dashboard_navigation_courses.html @@ -0,0 +1,10 @@ +<%page expression_filter="h"/> +<%! +from django.utils.translation import ugettext as _ +%> + +
    +

    ${_("My Courses")}

    +
    + +

    ${_('My Courses')}

    diff --git a/lms/templates/learner_dashboard/_dashboard_navigation_programs.html b/lms/templates/learner_dashboard/_dashboard_navigation_programs.html new file mode 100644 index 0000000000..f5c4a945f6 --- /dev/null +++ b/lms/templates/learner_dashboard/_dashboard_navigation_programs.html @@ -0,0 +1,2 @@ +<%page expression_filter="h"/> +## This file is left intentionally blank and can be overridden using theming diff --git a/lms/templates/learner_dashboard/program_details.html b/lms/templates/learner_dashboard/program_details.html index b31f71e37a..83c914109f 100644 --- a/lms/templates/learner_dashboard/program_details.html +++ b/lms/templates/learner_dashboard/program_details.html @@ -24,6 +24,8 @@ ProgramDetailsFactory({ <%block name="pagetitle">${_("Program Details")} <%block name="bodyclass">program-details +<%include file="_dashboard_navigation_programs.html"/> +
    diff --git a/lms/templates/learner_dashboard/programs.html b/lms/templates/learner_dashboard/programs.html index 587104f387..062be9930b 100644 --- a/lms/templates/learner_dashboard/programs.html +++ b/lms/templates/learner_dashboard/programs.html @@ -26,6 +26,8 @@ ProgramListFactory({ <%block name="pagetitle">${_("Programs")} +<%include file="_dashboard_navigation_programs.html"/> +