Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f9d599a1
Unverified
Commit
f9d599a1
authored
5 years ago
by
Douglas Hall
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add Discover New link to LMS header. (#20875)
parent
027a9bd2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/templates/header/navbar-authenticated.html
+1
-1
1 addition, 1 deletion
lms/templates/header/navbar-authenticated.html
themes/edx.org/lms/templates/header/navbar-authenticated.html
+9
-2
9 additions, 2 deletions
...es/edx.org/lms/templates/header/navbar-authenticated.html
with
10 additions
and
3 deletions
lms/templates/header/navbar-authenticated.html
+
1
−
1
View file @
f9d599a1
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
themes/edx.org/lms/templates/header/navbar-authenticated.html
+
9
−
2
View file @
f9d599a1
...
...
@@ -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_
</a>
</div>
% 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment