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
6cd23875
Commit
6cd23875
authored
May 16, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove delete button from instructor dash. (Also remove last-modified
column from task-in-progress table).
parent
8872fbcc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
18 deletions
+1
-18
lms/djangoapps/instructor/views.py
+0
-17
lms/templates/courseware/instructor_dashboard.html
+1
-1
No files found.
lms/djangoapps/instructor/views.py
View file @
6cd23875
...
...
@@ -259,23 +259,6 @@ def instructor_dashboard(request, course_id):
log
.
error
(
"Encountered exception from reset: {0}"
.
format
(
e
))
msg
+=
'<font color="red">Failed to create a background task for resetting "{0}": {1}.</font>'
.
format
(
problem_url
,
e
.
message
)
elif
"Delete ALL student state for module"
in
action
:
problem_urlname
=
request
.
POST
.
get
(
'problem_for_all_students'
,
''
)
problem_url
=
get_module_url
(
problem_urlname
)
try
:
course_task_log_entry
=
task_queue
.
submit_delete_problem_state_for_all_students
(
request
,
course_id
,
problem_url
)
if
course_task_log_entry
is
None
:
msg
+=
'<font color="red">Failed to create a background task for deleting "{0}".</font>'
.
format
(
problem_url
)
else
:
track_msg
=
'delete state for problem {problem} for all students in {course}'
.
format
(
problem
=
problem_url
,
course
=
course_id
)
track
.
views
.
server_track
(
request
,
track_msg
,
{},
page
=
'idashboard'
)
except
ItemNotFoundError
as
e
:
log
.
error
(
'Failure to delete state: unknown problem "{0}"'
.
format
(
e
))
msg
+=
'<font color="red">Failed to create a background task for deleting state for "{0}": problem not found.</font>'
.
format
(
problem_url
)
except
Exception
as
e
:
log
.
error
(
"Encountered exception from delete state: {0}"
.
format
(
e
))
msg
+=
'<font color="red">Failed to create a background task for deleting state for "{0}": {1}.</font>'
.
format
(
problem_url
,
e
.
message
)
elif
"Reset student's attempts"
in
action
or
"Delete student state for module"
in
action
\
or
"Regrade student's problem submission"
in
action
:
# get the form data
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
6cd23875
...
...
@@ -316,7 +316,7 @@ function goto( mode)
</p>
<p>
<p>
These actions run in the background, and status for active tasks will appear in a table below.
To see status for all tasks submitted for this
course
, click on this button:
To see status for all tasks submitted for this
problem
, click on this button:
</p>
<p>
<input
type=
"submit"
name=
"action"
value=
"Show Background Task History"
>
...
...
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