Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f2d51639
Commit
f2d51639
authored
Sep 18, 2017
by
Nico van Niekerk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX: course enrollment search, FIX: hidden tabs on instructor dashboard
parent
468fd999
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
common/djangoapps/student/admin.py
+1
-1
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+2
-0
No files found.
common/djangoapps/student/admin.py
View file @
f2d51639
...
...
@@ -155,7 +155,7 @@ class CourseEnrollmentAdmin(admin.ModelAdmin):
list_display
=
(
'id'
,
'course_id'
,
'mode'
,
'user'
,
'is_active'
,)
list_filter
=
(
'mode'
,
'is_active'
,)
raw_id_fields
=
(
'user'
,)
search_fields
=
(
'course_id'
,
'mode'
,
'user__username'
,)
search_fields
=
(
'course_
_
id'
,
'mode'
,
'user__username'
,)
def
queryset
(
self
,
request
):
return
super
(
CourseEnrollmentAdmin
,
self
)
.
queryset
(
request
)
.
select_related
(
'user'
)
...
...
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
View file @
f2d51639
...
...
@@ -123,7 +123,9 @@ from openedx.core.djangolib.markup import HTML
<
%
is_hidden =
section_data.get('is_hidden',
False
)
%
>
## This is necessary so we don't scrape 'section_display_name' as a string.
<
%
dname =
section_data['section_display_name']
%
>
% if not is_hidden:
<li
class=
"nav-item"
><button
type=
"button"
class=
"btn-link ${ section_data['section_key'] }${' hidden' if is_hidden else ''}"
data-section=
"${ section_data['section_key'] }"
>
${_(dname)}
</button></li>
% endif
% endfor
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment