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
bbcd8aff
Commit
bbcd8aff
authored
Dec 04, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1839 from edx/db/mitx-root-url
MITX_ROOT_URL => EDX_ROOT_URL
parents
1f056c37
b32f2bc1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
24 additions
and
24 deletions
+24
-24
cms/envs/common.py
+3
-3
cms/templates/base.html
+1
-1
common/djangoapps/edxmako/shortcuts.py
+1
-1
common/djangoapps/edxmako/template.py
+1
-1
lms/djangoapps/lms_migration/migrate.py
+1
-1
lms/djangoapps/multicourse/views.py
+3
-3
lms/envs/common.py
+4
-4
lms/templates/footer.html
+5
-5
lms/templates/login_modal.html
+1
-1
lms/templates/main.html
+1
-1
lms/templates/main_django.html
+1
-1
lms/templates/mktg_iframe.html
+1
-1
lms/templates/stripped-main.html
+1
-1
No files found.
cms/envs/common.py
View file @
bbcd8aff
...
...
@@ -99,10 +99,10 @@ for namespace, template_dirs in lms.envs.common.MAKO_TEMPLATES.iteritems():
TEMPLATE_DIRS
=
MAKO_TEMPLATES
[
'main'
]
MIT
X_ROOT_URL
=
''
ED
X_ROOT_URL
=
''
LOGIN_REDIRECT_URL
=
MIT
X_ROOT_URL
+
'/signin'
LOGIN_URL
=
MIT
X_ROOT_URL
+
'/signin'
LOGIN_REDIRECT_URL
=
ED
X_ROOT_URL
+
'/signin'
LOGIN_URL
=
ED
X_ROOT_URL
+
'/signin'
TEMPLATE_CONTEXT_PROCESSORS
=
(
...
...
cms/templates/base.html
View file @
bbcd8aff
...
...
@@ -20,7 +20,7 @@
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
>
<meta
name=
"path_prefix"
content=
"${
MIT
X_ROOT_URL}"
>
<meta
name=
"path_prefix"
content=
"${
ED
X_ROOT_URL}"
>
<
%
static:css
group=
'style-vendor'
/>
<
%
static:css
group=
'style-app'
/>
...
...
common/djangoapps/edxmako/shortcuts.py
View file @
bbcd8aff
...
...
@@ -77,7 +77,7 @@ def render_to_string(template_name, dictionary, context=None, namespace='main'):
# collapse context_instance to a single dictionary for mako
context_dictionary
=
{}
context_instance
[
'settings'
]
=
settings
context_instance
[
'
MITX_ROOT_URL'
]
=
settings
.
MIT
X_ROOT_URL
context_instance
[
'
EDX_ROOT_URL'
]
=
settings
.
ED
X_ROOT_URL
context_instance
[
'marketing_link'
]
=
marketing_link
# In various testing contexts, there might not be a current request context.
...
...
common/djangoapps/edxmako/template.py
View file @
bbcd8aff
...
...
@@ -54,7 +54,7 @@ class Template(MakoTemplate):
for
d
in
context_instance
:
context_dictionary
.
update
(
d
)
context_dictionary
[
'settings'
]
=
settings
context_dictionary
[
'
MITX_ROOT_URL'
]
=
settings
.
MIT
X_ROOT_URL
context_dictionary
[
'
EDX_ROOT_URL'
]
=
settings
.
ED
X_ROOT_URL
context_dictionary
[
'django_context'
]
=
context_instance
context_dictionary
[
'marketing_link'
]
=
marketing_link
...
...
lms/djangoapps/lms_migration/migrate.py
View file @
bbcd8aff
...
...
@@ -118,7 +118,7 @@ def manage_modulestores(request, reload_dir=None, commit_id=None):
html
+=
'<ol>'
for
cdir
,
course
in
def_ms
.
courses
.
items
():
html
+=
'<li><a href="
%
s/migrate/reload/
%
s">
%
s</a> (
%
s)</li>'
%
(
settings
.
MIT
X_ROOT_URL
,
settings
.
ED
X_ROOT_URL
,
escape
(
cdir
),
escape
(
cdir
),
course
.
location
.
url
()
...
...
lms/djangoapps/multicourse/views.py
View file @
bbcd8aff
...
...
@@ -4,11 +4,11 @@ from edxmako.shortcuts import render_to_response
from
multicourse
import
multicourse_settings
def
mit
xhome
(
request
):
def
ed
xhome
(
request
):
''' Home page (link from main header). List of courses. '''
if
settings
.
DEBUG
:
print
"[djangoapps.multicourse.
mitxhome] MITX_ROOT_URL = "
+
settings
.
MIT
X_ROOT_URL
print
"[djangoapps.multicourse.
edxhome] EDX_ROOT_URL = "
+
settings
.
ED
X_ROOT_URL
if
settings
.
ENABLE_MULTICOURSE
:
context
=
{
'courseinfo'
:
multicourse_settings
.
COURSE_SETTINGS
}
return
render_to_response
(
"
mitx
home.html"
,
context
)
return
render_to_response
(
"
edX
home.html"
,
context
)
return
info
(
request
)
lms/envs/common.py
View file @
bbcd8aff
...
...
@@ -310,10 +310,10 @@ RSS_TIMEOUT = 600
STATIC_GRAB
=
False
DEV_CONTENT
=
True
MIT
X_ROOT_URL
=
''
ED
X_ROOT_URL
=
''
LOGIN_REDIRECT_URL
=
MIT
X_ROOT_URL
+
'/accounts/login'
LOGIN_URL
=
MIT
X_ROOT_URL
+
'/accounts/login'
LOGIN_REDIRECT_URL
=
ED
X_ROOT_URL
+
'/accounts/login'
LOGIN_URL
=
ED
X_ROOT_URL
+
'/accounts/login'
COURSE_NAME
=
"6.002_Spring_2012"
COURSE_NUMBER
=
"6.002x"
...
...
@@ -321,7 +321,7 @@ COURSE_TITLE = "Circuits and Electronics"
### Dark code. Should be enabled in local settings for devel.
ENABLE_MULTICOURSE
=
False
# set to False to disable multicourse display (see lib.util.views.
mitx
home)
ENABLE_MULTICOURSE
=
False
# set to False to disable multicourse display (see lib.util.views.
edX
home)
WIKI_ENABLED
=
False
...
...
lms/templates/footer.html
View file @
bbcd8aff
...
...
@@ -48,27 +48,27 @@
<ul>
<li
class=
"nav-social-01"
>
<a
href=
"http://www.meetup.com/edX-Global-Community/"
rel=
"external"
>
<img
src=
"${
MIT
X_ROOT_URL}/static/images/social/ico-social-meetup.png"
alt=
"edX on Meetup"
/>
<img
src=
"${
ED
X_ROOT_URL}/static/images/social/ico-social-meetup.png"
alt=
"edX on Meetup"
/>
</a>
</li>
<li
class=
"nav-social-02"
>
<a
href=
"http://www.facebook.com/EdxOnline"
rel=
"external"
>
<img
src=
"${
MIT
X_ROOT_URL}/static/images/social/ico-social-facebook.png"
alt=
"edX on Facebook"
/>
<img
src=
"${
ED
X_ROOT_URL}/static/images/social/ico-social-facebook.png"
alt=
"edX on Facebook"
/>
</a>
</li>
<li
class=
"nav-social-03"
>
<a
href=
"https://twitter.com/edXOnline"
rel=
"external"
>
<img
src=
"${
MIT
X_ROOT_URL}/static/images/social/ico-social-twitter.png"
alt=
"edX on Twitter"
/>
<img
src=
"${
ED
X_ROOT_URL}/static/images/social/ico-social-twitter.png"
alt=
"edX on Twitter"
/>
</a>
</li>
<li
class=
"nav-social-04"
>
<a
href=
"https://plus.google.com/108235383044095082735/posts"
rel=
"external"
>
<img
src=
"${
MIT
X_ROOT_URL}/static/images/social/ico-social-google.png"
alt=
"edX on Google+"
/>
<img
src=
"${
ED
X_ROOT_URL}/static/images/social/ico-social-google.png"
alt=
"edX on Google+"
/>
</a>
</li>
<li
class=
"nav-social-05"
>
<a
href=
"http://youtube.com/user/edxonline"
rel=
"external"
>
<img
src=
"${
MIT
X_ROOT_URL}/static/images/social/ico-social-youtube.png"
alt=
"edX on YouTube"
/>
<img
src=
"${
ED
X_ROOT_URL}/static/images/social/ico-social-youtube.png"
alt=
"edX on YouTube"
/>
</a>
</li>
</ul>
...
...
lms/templates/login_modal.html
View file @
bbcd8aff
...
...
@@ -36,7 +36,7 @@
</p>
% if settings.FEATURES.get('AUTH_USE_OPENID'):
<p>
<a
href=
"${
MIT
X_ROOT_URL}/openid/login/"
>
${_('login via openid')}
</a>
<a
href=
"${
ED
X_ROOT_URL}/openid/login/"
>
${_('login via openid')}
</a>
</p>
% endif
</section>
...
...
lms/templates/main.html
View file @
bbcd8aff
...
...
@@ -62,7 +62,7 @@
<script src="${static.url('js/html5shiv.js')}"></script>
<![endif]-->
<meta
name=
"path_prefix"
content=
"${
MIT
X_ROOT_URL}"
>
<meta
name=
"path_prefix"
content=
"${
ED
X_ROOT_URL}"
>
<meta
name=
"google-site-verification"
content=
"_mipQ4AtZQDNmbtOkwehQDOgCxUUV2fb_C0b6wbiRHY"
/>
% if not course:
...
...
lms/templates/main_django.html
View file @
bbcd8aff
...
...
@@ -25,7 +25,7 @@
<script src="{% static 'js/html5shiv.js' %}"></script>
<![endif]-->
<meta
name=
"path_prefix"
content=
"{{
MIT
X_ROOT_URL}}"
>
<meta
name=
"path_prefix"
content=
"{{
ED
X_ROOT_URL}}"
>
</head>
<body
class=
"{% block bodyclass %}{% endblock %}"
>
...
...
lms/templates/mktg_iframe.html
View file @
bbcd8aff
...
...
@@ -8,7 +8,7 @@
<
%
block
name=
"title"
></
%
block>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"${static.url('images/favicon.ico')}"
/>
<meta
name=
"path_prefix"
content=
"${
MIT
X_ROOT_URL}"
/>
<meta
name=
"path_prefix"
content=
"${
ED
X_ROOT_URL}"
/>
<meta
name=
"google-site-verification"
content=
"_mipQ4AtZQDNmbtOkwehQDOgCxUUV2fb_C0b6wbiRHY"
/>
<
%
static:css
group=
'style-vendor'
/>
...
...
lms/templates/stripped-main.html
View file @
bbcd8aff
...
...
@@ -24,7 +24,7 @@
<script src="${static.url('js/html5shiv.js')}"></script>
<![endif]-->
<meta
name=
"path_prefix"
content=
"${
MIT
X_ROOT_URL}"
>
<meta
name=
"path_prefix"
content=
"${
ED
X_ROOT_URL}"
>
</head>
<body
class=
"<%block name='bodyclass'/>"
>
...
...
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