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
3e217c8f
Commit
3e217c8f
authored
May 03, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new login page for marketing site when student is trying to
access login_required page.
parent
d35283cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
36 deletions
+1
-36
common/djangoapps/student/views.py
+1
-1
lms/templates/accounts_login.html
+0
-35
No files found.
common/djangoapps/student/views.py
View file @
3e217c8f
...
@@ -372,7 +372,7 @@ def change_enrollment(request):
...
@@ -372,7 +372,7 @@ def change_enrollment(request):
@ensure_csrf_cookie
@ensure_csrf_cookie
def
accounts_login
(
request
,
error
=
""
):
def
accounts_login
(
request
,
error
=
""
):
return
render_to_response
(
'
accounts_
login.html'
,
{
'error'
:
error
})
return
render_to_response
(
'login.html'
,
{
'error'
:
error
})
# Need different levels of logging
# Need different levels of logging
...
...
lms/templates/accounts_login.html
deleted
100644 → 0
View file @
d35283cf
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
inherit
file=
"main.html"
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"headextra"
>
<style
type=
"text/css"
>
.login-box
{
display
:
block
;
position
:
relative
;
left
:
0
;
margin
:
100px
auto
;
top
:
0
;
height
:
500px
;
}
.login-box
input
[
type
=
submit
]
{
white-space
:
normal
;
height
:
auto
!important
;
}
</style>
</
%
block>
<section
class=
'login-box'
></section>
<script
type=
"text/javascript"
>
(
function
()
{
$
(
document
).
ready
(
function
()
{
// show dialog
$
(
'#login'
).
click
();
}
);
})(
this
)
</script>
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