Skip to content
Snippets Groups Projects
Unverified Commit f9d599a1 authored by Douglas Hall's avatar Douglas Hall Committed by GitHub
Browse files

Add Discover New link to LMS header. (#20875)

parent 027a9bd2
No related merge requests found
...@@ -11,7 +11,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ ...@@ -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 show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff
self.real_user = getattr(user, 'real_user', user) self.real_user = getattr(user, 'real_user', user)
......
...@@ -11,8 +11,7 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ ...@@ -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')
show_explore_courses = settings.FEATURES.get('COURSES_ARE_BROWSABLE') and not show_program_listing
show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff show_sysadmin_dashboard = settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD','') and user.is_staff
self.real_user = getattr(user, 'real_user', user) self.real_user = getattr(user, 'real_user', user)
%> %>
...@@ -54,6 +53,14 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_ ...@@ -54,6 +53,14 @@ from openedx.core.djangoapps.site_configuration import helpers as configuration_
</a> </a>
</div> </div>
% endif % endif
% if show_explore_courses:
<div class="mobile-nav-item hidden-mobile nav-item nav-tab">
<a class="tab-nav-link" href="${marketing_link('COURSES')}"
aria-current="${'page' if '/courses' in request.path else 'false'}">
${_('Discover New')}
</a>
</div>
% endif
% endif % endif
% endif % endif
......
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