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
6560c4fa
Commit
6560c4fa
authored
Jan 10, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small bugfixes for theming+sass+templates
change ruby and to &&
parent
eb15355b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
lms/startup.py
+2
-1
rakelib/assets.rake
+1
-1
No files found.
lms/startup.py
View file @
6560c4fa
...
@@ -9,7 +9,7 @@ settings.INSTALLED_APPS # pylint: disable=W0104
...
@@ -9,7 +9,7 @@ settings.INSTALLED_APPS # pylint: disable=W0104
from
django_startup
import
autostartup
from
django_startup
import
autostartup
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.django
import
modulestore
import
edxmako
def
run
():
def
run
():
"""
"""
...
@@ -50,6 +50,7 @@ def enable_theme():
...
@@ -50,6 +50,7 @@ def enable_theme():
# Include the theme's templates in the template search paths
# Include the theme's templates in the template search paths
settings
.
TEMPLATE_DIRS
.
append
(
theme_root
/
'templates'
)
settings
.
TEMPLATE_DIRS
.
append
(
theme_root
/
'templates'
)
settings
.
MAKO_TEMPLATES
[
'main'
]
.
append
(
theme_root
/
'templates'
)
settings
.
MAKO_TEMPLATES
[
'main'
]
.
append
(
theme_root
/
'templates'
)
edxmako
.
startup
.
run
()
# Namespace the theme's static files to 'themes/<theme_name>' to
# Namespace the theme's static files to 'themes/<theme_name>' to
# avoid collisions with default edX static files
# avoid collisions with default edX static files
...
...
rakelib/assets.rake
View file @
6560c4fa
# Theming constants
# Theming constants
USE_CUSTOM_THEME
=
ENV_TOKENS
[
'USE_CUSTOM_THEME'
]
USE_CUSTOM_THEME
=
ENV_TOKENS
.
has_key?
(
'FEATURES'
)
&&
ENV_TOKENS
[
'FEATURES'
]
[
'USE_CUSTOM_THEME'
]
if
USE_CUSTOM_THEME
if
USE_CUSTOM_THEME
THEME_NAME
=
ENV_TOKENS
[
'THEME_NAME'
]
THEME_NAME
=
ENV_TOKENS
[
'THEME_NAME'
]
THEME_ROOT
=
File
.
join
(
ENV_ROOT
,
"themes"
,
THEME_NAME
)
THEME_ROOT
=
File
.
join
(
ENV_ROOT
,
"themes"
,
THEME_NAME
)
...
...
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