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
b09c3b6a
Commit
b09c3b6a
authored
Feb 13, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Plain Diff
studio - resolving local merge due to editor alias
parents
d3e67be7
7f7fb60b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
cms/djangoapps/contentstore/tests/test_contentstore.py
+1
-1
cms/djangoapps/contentstore/tests/test_course_settings.py
+0
-4
cms/templates/login.html
+5
-1
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
b09c3b6a
...
@@ -367,7 +367,7 @@ class ContentStoreTest(ModuleStoreTestCase):
...
@@ -367,7 +367,7 @@ class ContentStoreTest(ModuleStoreTestCase):
resp
=
self
.
client
.
get
(
reverse
(
'course_index'
,
kwargs
=
data
))
resp
=
self
.
client
.
get
(
reverse
(
'course_index'
,
kwargs
=
data
))
self
.
assertContains
(
resp
,
self
.
assertContains
(
resp
,
'<a
href="/MITx/999/course/Robot_Super_Course" class="class-name">Robot Super Course</a
>'
,
'<a
rticle class="courseware-overview" data-course-id="i4x://MITx/999/course/Robot_Super_Course"
>'
,
status_code
=
200
,
status_code
=
200
,
html
=
True
)
html
=
True
)
...
...
cms/djangoapps/contentstore/tests/test_course_settings.py
View file @
b09c3b6a
...
@@ -143,10 +143,6 @@ class CourseDetailsViewTest(CourseTestCase):
...
@@ -143,10 +143,6 @@ class CourseDetailsViewTest(CourseTestCase):
def
test_update_and_fetch
(
self
):
def
test_update_and_fetch
(
self
):
details
=
CourseDetails
.
fetch
(
self
.
course_location
)
details
=
CourseDetails
.
fetch
(
self
.
course_location
)
resp
=
self
.
client
.
get
(
reverse
(
'course_settings'
,
kwargs
=
{
'org'
:
self
.
course_location
.
org
,
'course'
:
self
.
course_location
.
course
,
'name'
:
self
.
course_location
.
name
}))
self
.
assertContains
(
resp
,
'<li><a href="#" class="is-shown" data-section="details">Course Details</a></li>'
,
status_code
=
200
,
html
=
True
)
# resp s/b json from here on
# resp s/b json from here on
url
=
reverse
(
'course_settings'
,
kwargs
=
{
'org'
:
self
.
course_location
.
org
,
'course'
:
self
.
course_location
.
course
,
url
=
reverse
(
'course_settings'
,
kwargs
=
{
'org'
:
self
.
course_location
.
org
,
'course'
:
self
.
course_location
.
course
,
'name'
:
self
.
course_location
.
name
,
'section'
:
'details'
})
'name'
:
self
.
course_location
.
name
,
'section'
:
'details'
})
...
...
cms/templates/login.html
View file @
b09c3b6a
...
@@ -77,7 +77,11 @@
...
@@ -77,7 +77,11 @@
submit_data
,
submit_data
,
function
(
json
)
{
function
(
json
)
{
if
(
json
.
success
)
{
if
(
json
.
success
)
{
location
.
href
=
"${reverse('homepage')}"
;
var
next
=
/next=
([^
&
]
*
)
/g
.
exec
(
decodeURIComponent
(
window
.
location
.
search
));
if
(
next
&&
next
.
length
>
1
)
{
location
.
href
=
next
[
1
];
}
else
location
.
href
=
"${reverse('homepage')}"
;
}
else
if
(
$
(
'#login_error'
).
length
==
0
)
{
}
else
if
(
$
(
'#login_error'
).
length
==
0
)
{
$
(
'#login_form'
).
prepend
(
'<div id="login_error" class="message message-status error">'
+
json
.
value
+
'</span></div>'
);
$
(
'#login_form'
).
prepend
(
'<div id="login_error" class="message message-status error">'
+
json
.
value
+
'</span></div>'
);
$
(
'#login_error'
).
addClass
(
'is-shown'
);
$
(
'#login_error'
).
addClass
(
'is-shown'
);
...
...
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