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
c5da3da2
Commit
c5da3da2
authored
Sep 10, 2013
by
Pavel Yushchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added branding staff, changed default fallback to new welcome
parent
a052a230
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
common/djangoapps/student/views.py
+2
-2
lms/djangoapps/branding/__init__.py
+3
-4
lms/envs/common.py
+1
-1
lms/static/images/cpm-on-edx-logo.png
+0
-0
lms/static/sass/shared/_header.scss
+8
-1
No files found.
common/djangoapps/student/views.py
View file @
c5da3da2
...
@@ -260,7 +260,7 @@ def register_user(request, extra_context=None):
...
@@ -260,7 +260,7 @@ def register_user(request, extra_context=None):
if
extra_context
is
not
None
:
if
extra_context
is
not
None
:
context
.
update
(
extra_context
)
context
.
update
(
extra_context
)
return
render_to_response
(
'
register
.html'
,
context
)
return
render_to_response
(
'
university_profile/edge
.html'
,
context
)
@login_required
@login_required
...
@@ -414,7 +414,7 @@ def change_enrollment(request):
...
@@ -414,7 +414,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
(
'
login
.html'
,
{
'error'
:
error
})
return
render_to_response
(
'
university_profile/edge
.html'
,
{
'error'
:
error
})
# Need different levels of logging
# Need different levels of logging
@ensure_csrf_cookie
@ensure_csrf_cookie
...
...
lms/djangoapps/branding/__init__.py
View file @
c5da3da2
...
@@ -33,12 +33,11 @@ def get_university(domain=None):
...
@@ -33,12 +33,11 @@ def get_university(domain=None):
Return the university name specified for the domain, or None
Return the university name specified for the domain, or None
if no university was specified
if no university was specified
"""
"""
#
if not settings.MITX_FEATURES['SUBDOMAIN_BRANDING'] or domain is None:
if
not
settings
.
MITX_FEATURES
[
'SUBDOMAIN_BRANDING'
]
or
domain
is
None
:
#
return None
return
None
subdomain
=
pick_subdomain
(
domain
,
settings
.
SUBDOMAIN_BRANDING
.
keys
())
subdomain
=
pick_subdomain
(
domain
,
settings
.
SUBDOMAIN_BRANDING
.
keys
())
# return settings.SUBDOMAIN_BRANDING.get(subdomain)
return
settings
.
SUBDOMAIN_BRANDING
.
get
(
subdomain
)
return
'edge'
def
get_logo_url
(
domain
=
None
):
def
get_logo_url
(
domain
=
None
):
...
...
lms/envs/common.py
View file @
c5da3da2
...
@@ -64,7 +64,7 @@ MITX_FEATURES = {
...
@@ -64,7 +64,7 @@ MITX_FEATURES = {
# When True, will override certain branding with university specific values
# When True, will override certain branding with university specific values
# Expects a SUBDOMAIN_BRANDING dictionary that maps the subdomain to the
# Expects a SUBDOMAIN_BRANDING dictionary that maps the subdomain to the
# university to use for branding purposes
# university to use for branding purposes
'SUBDOMAIN_BRANDING'
:
Fals
e
,
'SUBDOMAIN_BRANDING'
:
Tru
e
,
'FORCE_UNIVERSITY_DOMAIN'
:
False
,
# set this to the university domain to use, as an override to HTTP_HOST
'FORCE_UNIVERSITY_DOMAIN'
:
False
,
# set this to the university domain to use, as an override to HTTP_HOST
# set to None to do no university selection
# set to None to do no university selection
...
...
lms/static/images/cpm-on-edx-logo.png
0 → 100644
View file @
c5da3da2
13.2 KB
lms/static/sass/shared/_header.scss
View file @
c5da3da2
...
@@ -2,7 +2,7 @@ header.global {
...
@@ -2,7 +2,7 @@ header.global {
border-bottom
:
1px
solid
$m-gray
;
border-bottom
:
1px
solid
$m-gray
;
box-shadow
:
0
1px
5px
0
rgba
(
0
,
0
,
0
,
0
.1
);
box-shadow
:
0
1px
5px
0
rgba
(
0
,
0
,
0
,
0
.1
);
background
:
$header-bg
;
background
:
$header-bg
;
height
:
7
6px
;
height
:
9
6px
;
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
z-index
:
10
;
z-index
:
10
;
...
@@ -23,6 +23,13 @@ header.global {
...
@@ -23,6 +23,13 @@ header.global {
a
{
a
{
display
:
block
;
display
:
block
;
position
:
absolute
;
}
span
{
display
:
inline-block
;
margin-left
:
130px
;
font-size
:
initial
;
white-space
:
nowrap
;
}
}
}
}
...
...
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