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
8fd3ab07
Commit
8fd3ab07
authored
Apr 28, 2014
by
Felipe Montoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If microsites are enabled and it is a microsite request, then take the microsite path for theming
parent
4c717ee3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
common/djangoapps/microsite_configuration/microsite.py
+1
-1
lms/templates/main.html
+4
-1
No files found.
common/djangoapps/microsite_configuration/microsite.py
View file @
8fd3ab07
...
...
@@ -36,7 +36,7 @@ def is_request_in_microsite():
"""
This will return if current request is a request within a microsite
"""
return
get_configuration
(
)
return
bool
(
get_configuration
()
)
def
get_value
(
val_name
,
default
=
None
):
...
...
lms/templates/main.html
View file @
8fd3ab07
...
...
@@ -20,6 +20,9 @@
<
%
def
name=
"theme_enabled()"
>
<
%
return
settings
.
FEATURES
.
get
("
USE_CUSTOM_THEME
",
False
)
%
>
</
%
def>
<
%
def
name=
"is_microsite()"
>
<
%
return
microsite
.
is_request_in_microsite
()
%
>
</
%
def>
<
%
def
name=
"stanford_theme_enabled()"
>
<
%
...
...
@@ -61,7 +64,7 @@
<
%
block
name=
"headextra"
/>
<
%
if
theme_enabled
()
:
if
theme_enabled
()
and
not
is_microsite
()
:
header_extra_file =
'theme-head-extra.html'
header_file =
'theme-header.html'
google_analytics_file =
'theme-google-analytics.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