From 17d79eb9bd59d562229d1f16cc390d9fa25342c2 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Tue, 14 Mar 2017 20:02:57 +0500 Subject: [PATCH] update dashbord navigation to include programs --- lms/templates/dashboard.html | 5 +---- .../_dashboard_navigation_courses.html | 10 ++++++++++ .../_dashboard_navigation_programs.html | 2 ++ lms/templates/learner_dashboard/program_details.html | 2 ++ lms/templates/learner_dashboard/programs.html | 2 ++ 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 lms/templates/learner_dashboard/_dashboard_navigation_courses.html create mode 100644 lms/templates/learner_dashboard/_dashboard_navigation_programs.html 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"/> +