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
75f17ecc
Commit
75f17ecc
authored
Feb 10, 2016
by
Saleem Latif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct FAVICON_PATH setting for comprehensive theming
parent
ccbd88ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
lms/djangoapps/courseware/tests/test_comprehensive_theming.py
+15
-0
openedx/core/djangoapps/theming/core.py
+0
-4
themes/red-theme/lms/static/images/favicon.ico
+0
-0
No files found.
lms/djangoapps/courseware/tests/test_comprehensive_theming.py
View file @
75f17ecc
...
...
@@ -71,3 +71,18 @@ class TestComprehensiveTheming(TestCase):
def
test_overridden_logo_image
(
self
):
result
=
staticfiles
.
finders
.
find
(
'images/logo.png'
)
self
.
assertEqual
(
result
,
settings
.
REPO_ROOT
/
'themes/red-theme/lms/static/images/logo.png'
)
def
test_default_favicon
(
self
):
"""
Test default favicon is served if no theme is applied
"""
result
=
staticfiles
.
finders
.
find
(
'images/favicon.ico'
)
self
.
assertEqual
(
result
,
settings
.
REPO_ROOT
/
'lms/static/images/favicon.ico'
)
@with_comprehensive_theme
(
settings
.
REPO_ROOT
/
'themes/red-theme'
)
def
test_overridden_favicon
(
self
):
"""
Test comprehensive theme override on favicon image.
"""
result
=
staticfiles
.
finders
.
find
(
'images/favicon.ico'
)
self
.
assertEqual
(
result
,
settings
.
REPO_ROOT
/
'themes/red-theme/lms/static/images/favicon.ico'
)
openedx/core/djangoapps/theming/core.py
View file @
75f17ecc
...
...
@@ -45,10 +45,6 @@ def comprehensive_theme_changes(theme_dir):
if
locale_dir
.
isdir
():
changes
[
'settings'
][
'LOCALE_PATHS'
]
=
[
locale_dir
]
+
settings
.
LOCALE_PATHS
favicon
=
component_dir
/
"static"
/
"images"
/
"favicon.ico"
if
favicon
.
isfile
():
changes
[
'settings'
][
'FAVICON_PATH'
]
=
str
(
favicon
)
return
changes
...
...
themes/red-theme/lms/static/images/favicon.ico
0 → 100644
View file @
75f17ecc
File added
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