From f9d599a1a0d0502ccc8e3fbff57cbc853a5080a9 Mon Sep 17 00:00:00 2001 From: Douglas Hall Date: Fri, 21 Jun 2019 15:41:06 -0400 Subject: [PATCH] Add Discover New link to LMS header. (#20875) --- lms/templates/header/navbar-authenticated.html | 2 +- .../lms/templates/header/navbar-authenticated.html | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lms/templates/header/navbar-authenticated.html b/lms/templates/header/navbar-authenticated.html index eaf9dd9ba3..4e32f807a7 100644 --- a/lms/templates/header/navbar-authenticated.html +++ b/lms/templates/header/navbar-authenticated.html @@ -11,7 +11,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ %> <% - show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing + show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff self.real_user = getattr(user, 'real_user', user) diff --git a/themes/edx.org/lms/templates/header/navbar-authenticated.html b/themes/edx.org/lms/templates/header/navbar-authenticated.html index 0e941a8a83..ae218ec67c 100644 --- a/themes/edx.org/lms/templates/header/navbar-authenticated.html +++ b/themes/edx.org/lms/templates/header/navbar-authenticated.html @@ -11,8 +11,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ %> <% - courses_are_browsable = settings.FEATURES.get('COURSES_ARE_BROWSABLE') - show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing + show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff self.real_user = getattr(user, 'real_user', user) %> @@ -54,6 +53,14 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ % endif + % if show_explore_courses: + + % endif % endif % endif