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
5591101a
Commit
5591101a
authored
Sep 09, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only show proctoring download button when the course has proctoring enabled
parent
7eb41ed8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
lms/djangoapps/instructor/views/instructor_dashboard.py
+7
-1
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
5591101a
...
@@ -490,11 +490,17 @@ def _section_extensions(course):
...
@@ -490,11 +490,17 @@ def _section_extensions(course):
def
_section_data_download
(
course
,
access
):
def
_section_data_download
(
course
,
access
):
""" Provide data for the corresponding dashboard section """
""" Provide data for the corresponding dashboard section """
course_key
=
course
.
id
course_key
=
course
.
id
show_proctored_report_button
=
(
settings
.
FEATURES
.
get
(
'ENABLE_PROCTORED_EXAMS'
,
False
)
and
course
.
enable_proctored_exams
)
section_data
=
{
section_data
=
{
'section_key'
:
'data_download'
,
'section_key'
:
'data_download'
,
'section_display_name'
:
_
(
'Data Download'
),
'section_display_name'
:
_
(
'Data Download'
),
'access'
:
access
,
'access'
:
access
,
'show_generate_proctored_exam_report_button'
:
s
ettings
.
FEATURES
.
get
(
'ENABLE_PROCTORED_EXAMS'
,
False
)
,
'show_generate_proctored_exam_report_button'
:
s
how_proctored_report_button
,
'get_problem_responses_url'
:
reverse
(
'get_problem_responses'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
'get_problem_responses_url'
:
reverse
(
'get_problem_responses'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
'get_grading_config_url'
:
reverse
(
'get_grading_config'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
'get_grading_config_url'
:
reverse
(
'get_grading_config'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
'get_students_features_url'
:
reverse
(
'get_students_features'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
'get_students_features_url'
:
reverse
(
'get_students_features'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)}),
...
...
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