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
5d0328aa
Commit
5d0328aa
authored
Aug 05, 2013
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
creates "edge" case
parent
cac6a319
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lms/djangoapps/branding/views.py
+10
-5
No files found.
lms/djangoapps/branding/views.py
View file @
5d0328aa
...
...
@@ -28,10 +28,13 @@ def index(request):
return
redirect
(
settings
.
MKTG_URLS
.
get
(
'ROOT'
))
university
=
branding
.
get_university
(
request
.
META
.
get
(
'HTTP_HOST'
))
if
university
is
None
:
if
university
==
'edge'
:
return
render_to_response
(
'university_profile/edge.html'
,
{})
# we do not expect this case to be reached in cases where
# marketing and edge are enabled
return
student
.
views
.
index
(
request
,
user
=
request
.
user
)
return
render_to_response
(
'university_profile/edge.html'
,
{})
@ensure_csrf_cookie
...
...
@@ -46,7 +49,9 @@ def courses(request):
return
redirect
(
marketing_link
(
'COURSES'
),
permanent
=
True
)
university
=
branding
.
get_university
(
request
.
META
.
get
(
'HTTP_HOST'
))
if
university
is
None
:
return
courseware
.
views
.
courses
(
request
)
if
university
==
'edge'
:
return
render_to_response
(
'university_profile/edge.html'
,
{})
# we do not expect this case to be reached in cases where
# marketing and edge are enabled
return
courseware
.
views
.
courses
(
request
)
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