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
5c345b3b
Commit
5c345b3b
authored
May 13, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix more broken tests after merge from master
parent
6c546fbf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
34 deletions
+14
-34
lms/djangoapps/bulk_email/tests/test_course_optout.py
+2
-2
lms/djangoapps/django_comment_client/base/views.py
+1
-1
lms/djangoapps/instructor/views/instructor_dashboard.py
+8
-8
lms/djangoapps/instructor/views/legacy.py
+1
-1
lms/templates/courseware/instructor_dashboard.html
+2
-10
lms/templates/notes.html
+0
-12
No files found.
lms/djangoapps/bulk_email/tests/test_course_optout.py
View file @
5c345b3b
...
...
@@ -38,9 +38,9 @@ class TestOptoutCourseEmails(ModuleStoreTestCase):
self
.
client
.
login
(
username
=
self
.
student
.
username
,
password
=
"test"
)
self
.
send_mail_url
=
reverse
(
'send_email'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
})
self
.
send_mail_url
=
reverse
(
'send_email'
,
kwargs
=
{
'course_id'
:
self
.
course
.
id
.
to_deprecated_string
()
})
self
.
success_content
=
{
'course_id'
:
self
.
course
.
id
,
'course_id'
:
self
.
course
.
id
.
to_deprecated_string
()
,
'success'
:
True
,
}
...
...
lms/djangoapps/django_comment_client/base/views.py
View file @
5c345b3b
...
...
@@ -183,7 +183,7 @@ def _create_comment(request, course_key, thread_id=None, parent_id=None):
anonymous
=
anonymous
,
anonymous_to_peers
=
anonymous_to_peers
,
user_id
=
request
.
user
.
id
,
course_id
=
course_
id
.
to_deprecated_string
(),
course_id
=
course_
key
.
to_deprecated_string
(),
thread_id
=
thread_id
,
parent_id
=
parent_id
,
body
=
post
[
"body"
]
...
...
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
5c345b3b
...
...
@@ -83,7 +83,7 @@ def instructor_dashboard_2(request, course_id):
context
=
{
'course'
:
course
,
'old_dashboard_url'
:
reverse
(
'instructor_dashboard_legacy'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'old_dashboard_url'
:
reverse
(
'instructor_dashboard_legacy'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'studio_url'
:
studio_url
,
'sections'
:
sections
,
'disable_buttons'
:
disable_buttons
,
...
...
@@ -156,7 +156,7 @@ def _section_membership(course_key, access):
def
_section_student_admin
(
course_key
,
access
):
""" Provide data for the corresponding dashboard section """
is_small_course
=
False
enrollment_count
=
CourseEnrollment
.
num_enrolled_in
(
course_
id
)
enrollment_count
=
CourseEnrollment
.
num_enrolled_in
(
course_
key
)
max_enrollment_for_buttons
=
settings
.
FEATURES
.
get
(
"MAX_ENROLLMENT_INSTR_BUTTONS"
)
if
max_enrollment_for_buttons
is
not
None
:
is_small_course
=
enrollment_count
<=
max_enrollment_for_buttons
...
...
@@ -166,12 +166,12 @@ def _section_student_admin(course_key, access):
'section_display_name'
:
_
(
'Student Admin'
),
'access'
:
access
,
'is_small_course'
:
is_small_course
,
'get_student_progress_url_url'
:
reverse
(
'get_student_progress_url'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'enrollment_url'
:
reverse
(
'students_update_enrollment'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'reset_student_attempts_url'
:
reverse
(
'reset_student_attempts'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'rescore_problem_url'
:
reverse
(
'rescore_problem'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'list_instructor_tasks_url'
:
reverse
(
'list_instructor_tasks'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'spoc_gradebook_url'
:
reverse
(
'spoc_gradebook'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()}),
'get_student_progress_url_url'
:
reverse
(
'get_student_progress_url'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'enrollment_url'
:
reverse
(
'students_update_enrollment'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'reset_student_attempts_url'
:
reverse
(
'reset_student_attempts'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'rescore_problem_url'
:
reverse
(
'rescore_problem'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'list_instructor_tasks_url'
:
reverse
(
'list_instructor_tasks'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
'spoc_gradebook_url'
:
reverse
(
'spoc_gradebook'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()}),
}
return
section_data
...
...
lms/djangoapps/instructor/views/legacy.py
View file @
5c345b3b
...
...
@@ -1038,7 +1038,7 @@ def instructor_dashboard(request, course_id):
'metrics_results'
:
metrics_results
,
}
context
[
'standard_dashboard_url'
]
=
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
course_
id
.
to_deprecated_string
()})
context
[
'standard_dashboard_url'
]
=
reverse
(
'instructor_dashboard'
,
kwargs
=
{
'course_id'
:
course_
key
.
to_deprecated_string
()})
return
render_to_response
(
'courseware/instructor_dashboard.html'
,
context
)
...
...
lms/templates/courseware/instructor_dashboard.html
View file @
5c345b3b
...
...
@@ -197,19 +197,11 @@ function goto( mode)
% endif
<p>
<
<<<<<<
HEAD
<
a
href=
"${reverse('gradebook', kwargs=dict(course_id=course.id.to_deprecated_string()))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Gradebook")}
</a>
<a
href=
"${reverse('gradebook_legacy', kwargs=dict(course_id=course.id.to_deprecated_string()))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Gradebook")}
</a>
</p>
<p>
<a
href=
"${reverse('grade_summary', kwargs=dict(course_id=course.id.to_deprecated_string()))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Grade summary")}
</a>
=======
<a
href=
"${reverse('gradebook_legacy', kwargs=dict(course_id=course.id))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Gradebook")}
</a>
</p>
<p>
<a
href=
"${reverse('grade_summary_legacy', kwargs=dict(course_id=course.id))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Grade summary")}
</a>
>>>>>>> edx/master
<a
href=
"${reverse('grade_summary_legacy', kwargs=dict(course_id=course.id.to_deprecated_string()))}"
class=
"${'is-disabled' if disable_buttons else ''}"
>
${_("Grade summary")}
</a>
</p>
<p>
...
...
lms/templates/notes.html
View file @
5c345b3b
...
...
@@ -64,21 +64,12 @@
<section
id=
"catchDIV"
>
<div
class=
"annotationListContainer"
>
${_('You do not have any notes.')}
</div>
</section>
<
<<<<<<
HEAD
<script>
//Grab uri of the course
var
parts
=
window
.
location
.
href
.
split
(
"/"
),
uri
=
''
;
for
(
var
index
=
0
;
index
<=
6
;
index
+=
1
)
uri
+=
parts
[
index
]
+
"/"
;
//Get the unit url
=
======
<
script
>
//Grab uri of the course
var parts = window.location.href.split("/"),
uri = '';
for (var index = 0; index
<
=
6
;
index
+=
1
)
uri
+=
parts
[
index
]+"/";
//
Get
the
unit
url
>
>>>>>> edx/master
var
pagination
=
100
,
is_staff
=
false
,
options
=
{
...
...
@@ -173,8 +164,6 @@
extended_valid_elements
:
"iframe[src|frameborder|style|scrolling|class|width|height|name|align|id]"
,
toolbar
:
"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media rubric | code "
,
}
<<<<<<<
HEAD
=
======
return
true
;
},
},
...
...
@@ -194,7 +183,6 @@
update
:
'/update/:id'
,
destroy
:
'/delete/:id'
,
search
:
'/search'
>
>>>>>> edx/master
},
};
...
...
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