From b32f2bc17022eefb3c01b20648ac822895ccd43b Mon Sep 17 00:00:00 2001
From: David Baumgold
Date: Mon, 2 Dec 2013 14:22:52 -0500
Subject: [PATCH] MITX_ROOT_URL => EDX_ROOT_URL
---
cms/envs/common.py | 6 +++---
cms/templates/base.html | 2 +-
common/djangoapps/edxmako/shortcuts.py | 2 +-
common/djangoapps/edxmako/template.py | 2 +-
lms/djangoapps/lms_migration/migrate.py | 2 +-
lms/djangoapps/multicourse/views.py | 6 +++---
lms/envs/common.py | 8 ++++----
lms/templates/footer.html | 10 +++++-----
lms/templates/login_modal.html | 2 +-
lms/templates/main.html | 2 +-
lms/templates/main_django.html | 2 +-
lms/templates/mktg_iframe.html | 2 +-
lms/templates/stripped-main.html | 2 +-
13 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/cms/envs/common.py b/cms/envs/common.py
index a8c293b57f08..1040dc410531 100644
--- a/cms/envs/common.py
+++ b/cms/envs/common.py
@@ -99,10 +99,10 @@
TEMPLATE_DIRS = MAKO_TEMPLATES['main']
-MITX_ROOT_URL = ''
+EDX_ROOT_URL = ''
-LOGIN_REDIRECT_URL = MITX_ROOT_URL + '/signin'
-LOGIN_URL = MITX_ROOT_URL + '/signin'
+LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/signin'
+LOGIN_URL = EDX_ROOT_URL + '/signin'
TEMPLATE_CONTEXT_PROCESSORS = (
diff --git a/cms/templates/base.html b/cms/templates/base.html
index 37b25b191913..129a80890a59 100644
--- a/cms/templates/base.html
+++ b/cms/templates/base.html
@@ -20,7 +20,7 @@
-
+
<%static:css group='style-vendor'/>
<%static:css group='style-app'/>
diff --git a/common/djangoapps/edxmako/shortcuts.py b/common/djangoapps/edxmako/shortcuts.py
index c2b56ffc3946..6cecb409e948 100644
--- a/common/djangoapps/edxmako/shortcuts.py
+++ b/common/djangoapps/edxmako/shortcuts.py
@@ -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.MITX_ROOT_URL
+ context_instance['EDX_ROOT_URL'] = settings.EDX_ROOT_URL
context_instance['marketing_link'] = marketing_link
# In various testing contexts, there might not be a current request context.
diff --git a/common/djangoapps/edxmako/template.py b/common/djangoapps/edxmako/template.py
index d515425b1637..43ac057a27b1 100644
--- a/common/djangoapps/edxmako/template.py
+++ b/common/djangoapps/edxmako/template.py
@@ -54,7 +54,7 @@ def render(self, context_instance):
for d in context_instance:
context_dictionary.update(d)
context_dictionary['settings'] = settings
- context_dictionary['MITX_ROOT_URL'] = settings.MITX_ROOT_URL
+ context_dictionary['EDX_ROOT_URL'] = settings.EDX_ROOT_URL
context_dictionary['django_context'] = context_instance
context_dictionary['marketing_link'] = marketing_link
diff --git a/lms/djangoapps/lms_migration/migrate.py b/lms/djangoapps/lms_migration/migrate.py
index d028ce8e5a83..18d9a5101747 100644
--- a/lms/djangoapps/lms_migration/migrate.py
+++ b/lms/djangoapps/lms_migration/migrate.py
@@ -118,7 +118,7 @@ def manage_modulestores(request, reload_dir=None, commit_id=None):
html += ''
for cdir, course in def_ms.courses.items():
html += '- %s (%s)
' % (
- settings.MITX_ROOT_URL,
+ settings.EDX_ROOT_URL,
escape(cdir),
escape(cdir),
course.location.url()
diff --git a/lms/djangoapps/multicourse/views.py b/lms/djangoapps/multicourse/views.py
index c48c4477e48f..7f313373a813 100644
--- a/lms/djangoapps/multicourse/views.py
+++ b/lms/djangoapps/multicourse/views.py
@@ -4,11 +4,11 @@
from multicourse import multicourse_settings
-def mitxhome(request):
+def edxhome(request):
''' Home page (link from main header). List of courses. '''
if settings.DEBUG:
- print "[djangoapps.multicourse.mitxhome] MITX_ROOT_URL = " + settings.MITX_ROOT_URL
+ print "[djangoapps.multicourse.edxhome] EDX_ROOT_URL = " + settings.EDX_ROOT_URL
if settings.ENABLE_MULTICOURSE:
context = {'courseinfo': multicourse_settings.COURSE_SETTINGS}
- return render_to_response("mitxhome.html", context)
+ return render_to_response("edXhome.html", context)
return info(request)
diff --git a/lms/envs/common.py b/lms/envs/common.py
index 7dbcb1cd468a..9f86c546b795 100644
--- a/lms/envs/common.py
+++ b/lms/envs/common.py
@@ -310,10 +310,10 @@
STATIC_GRAB = False
DEV_CONTENT = True
-MITX_ROOT_URL = ''
+EDX_ROOT_URL = ''
-LOGIN_REDIRECT_URL = MITX_ROOT_URL + '/accounts/login'
-LOGIN_URL = MITX_ROOT_URL + '/accounts/login'
+LOGIN_REDIRECT_URL = EDX_ROOT_URL + '/accounts/login'
+LOGIN_URL = EDX_ROOT_URL + '/accounts/login'
COURSE_NAME = "6.002_Spring_2012"
COURSE_NUMBER = "6.002x"
@@ -321,7 +321,7 @@
### Dark code. Should be enabled in local settings for devel.
-ENABLE_MULTICOURSE = False # set to False to disable multicourse display (see lib.util.views.mitxhome)
+ENABLE_MULTICOURSE = False # set to False to disable multicourse display (see lib.util.views.edXhome)
WIKI_ENABLED = False
diff --git a/lms/templates/footer.html b/lms/templates/footer.html
index 394c679b6f85..caff83bace60 100644
--- a/lms/templates/footer.html
+++ b/lms/templates/footer.html
@@ -48,27 +48,27 @@
diff --git a/lms/templates/login_modal.html b/lms/templates/login_modal.html
index 676f35246741..fb425a11c3bf 100644
--- a/lms/templates/login_modal.html
+++ b/lms/templates/login_modal.html
@@ -36,7 +36,7 @@ ${_("Log In")}
% if settings.FEATURES.get('AUTH_USE_OPENID'):
- ${_('login via openid')}
+ ${_('login via openid')}
% endif
diff --git a/lms/templates/main.html b/lms/templates/main.html
index 2d001ffe65c0..a2395db4ed39 100644
--- a/lms/templates/main.html
+++ b/lms/templates/main.html
@@ -62,7 +62,7 @@
-
+
% if not course:
diff --git a/lms/templates/main_django.html b/lms/templates/main_django.html
index a20d489d8bbd..9190ddab928f 100644
--- a/lms/templates/main_django.html
+++ b/lms/templates/main_django.html
@@ -25,7 +25,7 @@
-
+
diff --git a/lms/templates/mktg_iframe.html b/lms/templates/mktg_iframe.html
index 338f49240cbe..ea1b00f1ad61 100644
--- a/lms/templates/mktg_iframe.html
+++ b/lms/templates/mktg_iframe.html
@@ -8,7 +8,7 @@
<%block name="title">%block>
-
+
<%static:css group='style-vendor'/>
diff --git a/lms/templates/stripped-main.html b/lms/templates/stripped-main.html
index 28166dbd972f..f2e8545e968f 100644
--- a/lms/templates/stripped-main.html
+++ b/lms/templates/stripped-main.html
@@ -24,7 +24,7 @@
-
+