Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
6aeadb87
Commit
6aeadb87
authored
11 years ago
by
Jason Bau
Browse files
Options
Downloads
Plain Diff
Merge pull request #2163 from edx/jbau/sass-path-bugfix
small bugfixes for theming+sass+templates
parents
129c2447
6560c4fa
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/startup.py
+2
-1
2 additions, 1 deletion
lms/startup.py
rakelib/assets.rake
+1
-1
1 addition, 1 deletion
rakelib/assets.rake
with
3 additions
and
2 deletions
lms/startup.py
+
2
−
1
View file @
6aeadb87
...
...
@@ -9,7 +9,7 @@ settings.INSTALLED_APPS # pylint: disable=W0104
from
django_startup
import
autostartup
from
xmodule.modulestore.django
import
modulestore
import
edxmako
def
run
():
"""
...
...
@@ -50,6 +50,7 @@ def enable_theme():
# Include the theme's templates in the template search paths
settings
.
TEMPLATE_DIRS
.
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
# avoid collisions with default edX static files
...
...
This diff is collapsed.
Click to expand it.
rakelib/assets.rake
+
1
−
1
View file @
6aeadb87
# 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
THEME_NAME
=
ENV_TOKENS
[
'THEME_NAME'
]
THEME_ROOT
=
File
.
join
(
ENV_ROOT
,
"themes"
,
THEME_NAME
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment