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
314c9353
Commit
314c9353
authored
Jan 07, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove edX branding from default Open edX LMS
OPEN-307
parent
fe40fa6d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
12 deletions
+22
-12
lms/djangoapps/branding/__init__.py
+10
-6
lms/envs/common.py
+2
-1
lms/static/images/edx-header-logo.png
+0
-0
lms/static/images/edx-logo-77x36.png
+0
-0
lms/static/images/logo-placeholder-large.png
+0
-0
lms/templates/courseware/courses.html
+8
-3
lms/templates/footer-edx-new.html
+1
-1
lms/templates/main.html
+1
-1
No files found.
lms/djangoapps/branding/__init__.py
View file @
314c9353
...
...
@@ -63,11 +63,15 @@ def get_logo_url():
# otherwise, use the legacy means to configure this
university
=
microsite
.
get_value
(
'university'
)
if
university
is
None
:
return
'{static_url}images/logo-edX-77x36.png'
.
format
(
if
university
is
None
and
settings
.
FEATURES
.
get
(
'IS_EDX_DOMAIN'
,
False
):
return
'{static_url}images/edx-logo-77x36.png'
.
format
(
static_url
=
settings
.
STATIC_URL
)
elif
university
:
return
'{static_url}images/{uni}-on-edx-logo.png'
.
format
(
static_url
=
settings
.
STATIC_URL
,
uni
=
university
)
else
:
return
'{static_url}images/logo-placeholder.png'
.
format
(
static_url
=
settings
.
STATIC_URL
)
return
'{static_url}images/{uni}-on-edx-logo.png'
.
format
(
static_url
=
settings
.
STATIC_URL
,
uni
=
university
)
lms/envs/common.py
View file @
314c9353
...
...
@@ -186,7 +186,8 @@ FEATURES = {
# Enable legacy instructor dashboard
'ENABLE_INSTRUCTOR_LEGACY_DASHBOARD'
:
True
,
# Is this an edX-owned domain? (used on instructor dashboard)
# Is this an edX-owned domain? (used for edX specific messaging and images)
'IS_EDX_DOMAIN'
:
False
,
# Toggle to enable certificates of courses on dashboard
...
...
lms/static/images/header-logo.png
→
lms/static/images/
edx-
header-logo.png
View file @
314c9353
File moved
lms/static/images/
logo-edX
-77x36.png
→
lms/static/images/
edx-logo
-77x36.png
View file @
314c9353
File moved
lms/static/images/logo-placeholder-large.png
0 → 100644
View file @
314c9353
19.9 KB
lms/templates/courseware/courses.html
View file @
314c9353
...
...
@@ -17,12 +17,17 @@
else:
course_index_overlay_text =
microsite.get_value('course_index_overlay_text',
_
("
Explore
courses
from
{
platform_name
}.").
format
(
platform_name=
platform_name))
#
not
sure
why
this
is
,
but
if
I
use
static
.
url
('
images
/
edx-logo-bw
.
png
')
then
the
HTML
rendering
#
of
this
template
goes
wonky
if
settings
.
FEATURES
.
get
('
IS_EDX_DOMAIN
',
False
)
:
#
For
some
reason
,
`
static
.
url
('
images
/
edx-logo-bw
.
png
')`
breaks
template
rendering
.
default_image_url =
settings.STATIC_URL
+
'
images
/
edx-logo-bw
.
png
'
else:
default_image_url =
settings.STATIC_URL
+
'
images
/
logo-placeholder-large
.
png
'
logo_file =
microsite.get_value(
'
course_index_overlay_logo_file
',
settings
.
STATIC_URL
+
'
images
/
edx-logo-bw
.
png
'
'
course_index_overlay_logo_file
',
default_image_url
)
logo_alt_text =
_("{platform_name}
Logo
").
format
(
platform_name=
platform_name)
%
>
...
...
lms/templates/footer-edx-new.html
View file @
314c9353
...
...
@@ -11,7 +11,7 @@
<h2
class=
"sr footer-about-title"
>
${_("About edX")}
</h2>
<div
class=
"footer-about-logo"
>
<img
alt=
"edX logo"
src=
"${static.url('images/header-logo.png')}"
>
<img
alt=
"edX logo"
src=
"${static.url('images/
edx-
header-logo.png')}"
>
</div>
<div
class=
"footer-about-copy"
>
...
...
lms/templates/main.html
View file @
314c9353
...
...
@@ -153,7 +153,7 @@
<
%
if
theme_enabled
()
and
not
is_microsite
()
:
footer_file =
'theme-footer.html'
elif
settings
.
FEATURES
['
IS_EDX_DOMAIN
']
and
not
is_microsite
()
:
elif
settings
.
FEATURES
.
get
('
IS_EDX_DOMAIN
',
False
)
and
not
is_microsite
()
:
footer_file =
microsite.get_template_path('footer-edx-new.html')
else:
footer_file =
microsite.get_template_path('footer.html')
...
...
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