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
787df105
Unverified
Commit
787df105
authored
Nov 15, 2017
by
Hasnain Naveed
Committed by
GitHub
Nov 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16535 from edx/hasnain-naveed/WL-1257
WL-1257 | Site aware context variables.
parents
25b75467
71ae2247
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
openedx/core/djangoapps/schedules/template_context.py
+18
-4
No files found.
openedx/core/djangoapps/schedules/template_context.py
View file @
787df105
...
...
@@ -14,10 +14,24 @@ def get_base_template_context(site):
'homepage_url'
:
encode_url
(
marketing_link
(
'ROOT'
)),
'dashboard_url'
:
absolute_url
(
site
,
reverse
(
'dashboard'
)),
'template_revision'
:
settings
.
EDX_PLATFORM_REVISION
,
'platform_name'
:
settings
.
PLATFORM_NAME
,
'contact_mailing_address'
:
settings
.
CONTACT_MAILING_ADDRESS
,
'social_media_urls'
:
encode_urls_in_dict
(
getattr
(
settings
,
'SOCIAL_MEDIA_FOOTER_URLS'
,
{})),
'mobile_store_urls'
:
encode_urls_in_dict
(
getattr
(
settings
,
'MOBILE_STORE_URLS'
,
{})),
'platform_name'
:
site
.
configuration
.
get_value
(
'platform_name'
,
settings
.
PLATFORM_NAME
),
'contact_mailing_address'
:
site
.
configuration
.
get_value
(
'contact_mailing_address'
,
settings
.
CONTACT_MAILING_ADDRESS
),
'social_media_urls'
:
encode_urls_in_dict
(
site
.
configuration
.
get_value
(
'SOCIAL_MEDIA_FOOTER_URLS'
,
getattr
(
settings
,
'SOCIAL_MEDIA_FOOTER_URLS'
,
{})
)
),
'mobile_store_urls'
:
encode_urls_in_dict
(
site
.
configuration
.
get_value
(
'MOBILE_STORE_URLS'
,
getattr
(
settings
,
'MOBILE_STORE_URLS'
,
{})
)
),
}
...
...
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