Commit 6cc084f2 by Giulio Gratta

Merge remote-tracking branch 'origin/master' into feature/giulio/reset-master-stanford

parents 3dfa0b6e be70e016
...@@ -26,7 +26,7 @@ class LMSLinksTestCase(TestCase): ...@@ -26,7 +26,7 @@ class LMSLinksTestCase(TestCase):
link = utils.get_lms_link_for_item(location, True) link = utils.get_lms_link_for_item(location, True)
self.assertEquals( self.assertEquals(
link, link,
"//preview.localhost:8000/courses/mitX/101/test/jump_to/i4x://mitX/101/vertical/contacting_us" "//preview/courses/mitX/101/test/jump_to/i4x://mitX/101/vertical/contacting_us"
) )
......
...@@ -88,7 +88,7 @@ def get_lms_link_for_item(location, preview=False, course_id=None): ...@@ -88,7 +88,7 @@ def get_lms_link_for_item(location, preview=False, course_id=None):
if settings.LMS_BASE is not None: if settings.LMS_BASE is not None:
if preview: if preview:
lms_base = settings.MITX_FEATURES.get('PREVIEW_LMS_BASE', 'preview.' + settings.LMS_BASE) lms_base = settings.MITX_FEATURES.get('PREVIEW_LMS_BASE')
else: else:
lms_base = settings.LMS_BASE lms_base = settings.LMS_BASE
......
...@@ -179,8 +179,7 @@ def edit_unit(request, location): ...@@ -179,8 +179,7 @@ def edit_unit(request, location):
break break
index = index + 1 index = index + 1
preview_lms_base = settings.MITX_FEATURES.get('PREVIEW_LMS_BASE', preview_lms_base = settings.MITX_FEATURES.get('PREVIEW_LMS_BASE')
'preview.' + settings.LMS_BASE)
preview_lms_link = '//{preview_lms_base}/courses/{org}/{course}/{course_name}/courseware/{section}/{subsection}/{index}'.format( preview_lms_link = '//{preview_lms_base}/courses/{org}/{course}/{course_name}/courseware/{section}/{subsection}/{index}'.format(
preview_lms_base=preview_lms_base, preview_lms_base=preview_lms_base,
......
...@@ -81,6 +81,7 @@ with open(ENV_ROOT / CONFIG_PREFIX + "env.json") as env_file: ...@@ -81,6 +81,7 @@ with open(ENV_ROOT / CONFIG_PREFIX + "env.json") as env_file:
ENV_TOKENS = json.load(env_file) ENV_TOKENS = json.load(env_file)
LMS_BASE = ENV_TOKENS.get('LMS_BASE') LMS_BASE = ENV_TOKENS.get('LMS_BASE')
# Note that MITX_FEATURES['PREVIEW_LMS_BASE'] gets read in from the environment file.
SITE_NAME = ENV_TOKENS['SITE_NAME'] SITE_NAME = ENV_TOKENS['SITE_NAME']
......
...@@ -39,8 +39,8 @@ MITX_FEATURES = { ...@@ -39,8 +39,8 @@ MITX_FEATURES = {
'STUDIO_NPS_SURVEY': True, 'STUDIO_NPS_SURVEY': True,
'SEGMENT_IO': True, 'SEGMENT_IO': True,
# Enable URL that shows information about the status of variuous services # Enable URL that shows information about the status of various services
'ENABLE_SERVICE_STATUS': False, 'ENABLE_SERVICE_STATUS': False
} }
ENABLE_JASMINE = False ENABLE_JASMINE = False
......
...@@ -55,6 +55,7 @@ DATABASES = { ...@@ -55,6 +55,7 @@ DATABASES = {
} }
LMS_BASE = "localhost:8000" LMS_BASE = "localhost:8000"
MITX_FEATURES['PREVIEW_LMS_BASE'] = "localhost:8000"
REPOS = { REPOS = {
'edx4edx': { 'edx4edx': {
......
...@@ -82,6 +82,7 @@ DATABASES = { ...@@ -82,6 +82,7 @@ DATABASES = {
} }
LMS_BASE = "localhost:8000" LMS_BASE = "localhost:8000"
MITX_FEATURES['PREVIEW_LMS_BASE'] = "preview"
CACHES = { CACHES = {
# This is the cache used for most things. Askbot will not work without a # This is the cache used for most things. Askbot will not work without a
......
The code in this directory is based on:
django-mako Copyright (c) 2008 Mikeal Rogers
and is redistributed here with modifications under the same Apache 2.0 license
as the orginal.
================================================================================ ================================================================================
django-mako django-mako
================================================================================ ================================================================================
......
lms/static/images/pinned.png

518 Bytes | W: | H:

lms/static/images/pinned.png

49.5 KB | W: | H:

lms/static/images/pinned.png
lms/static/images/pinned.png
lms/static/images/pinned.png
lms/static/images/pinned.png
  • 2-up
  • Swipe
  • Onion skin
lms/static/images/unpinned.png

498 Bytes | W: | H:

lms/static/images/unpinned.png

48.1 KB | W: | H:

lms/static/images/unpinned.png
lms/static/images/unpinned.png
lms/static/images/unpinned.png
lms/static/images/unpinned.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
// colophon // colophon
.colophon { .colophon {
margin-right: flex-gutter(2); margin-right: flex-gutter();
width: flex-grid(6,12); width: flex-grid(8,12);
float: left; float: left;
.nav-colophon { .nav-colophon {
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
p { p {
float: left; float: left;
width: 460px; width: flex-grid(6,8);
margin-left: $baseline; margin-left: $baseline;
padding-left: $baseline; padding-left: $baseline;
font-size: em(13); font-size: em(13);
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
text-align: right; text-align: right;
li { li {
margin-right: ($baseline/10);
display: inline-block; display: inline-block;
&:last-child { &:last-child {
...@@ -155,9 +154,5 @@ ...@@ -155,9 +154,5 @@
.colophon-about img { .colophon-about img {
margin-top: ($baseline*1.5); margin-top: ($baseline*1.5);
} }
.colophon-about p {
width: 360px;
}
} }
} }
...@@ -14,7 +14,6 @@ header.global { ...@@ -14,7 +14,6 @@ header.global {
padding: 18px 10px 0px; padding: 18px 10px 0px;
max-width: grid-width(12); max-width: grid-width(12);
min-width: 760px; min-width: 760px;
width: flex-grid(12);
} }
h1.logo { h1.logo {
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<section class="outside-app"> <section class="outside-app">
<h1>There has been a 500 error on the <em>edX</em> servers</h1> <h1>There has been a 500 error on the <em>edX</em> servers</h1>
<p>Our staff is currently working to get the site back up as soon as possible. Please email us at <a href="mailto:technical@edx.org">technical@edx.org</a> to report any problems or downtime.</p> <p>Please wait a few seconds and then reload the page. If the problem persists, please email us at <a href="mailto:technical@edx.org">technical@edx.org</a>.</p>
</section> </section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment