diff --git a/AUTHORS b/AUTHORS index e4bf2dbed6..732103653f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -258,3 +258,4 @@ Shawn Milochik Afeef Janjua Jacek Bzdak Jillian Vogel +Dan Powell diff --git a/cms/djangoapps/contentstore/views/certificates.py b/cms/djangoapps/contentstore/views/certificates.py index b6bbe3ebe8..614a690bb2 100644 --- a/cms/djangoapps/contentstore/views/certificates.py +++ b/cms/djangoapps/contentstore/views/certificates.py @@ -359,11 +359,14 @@ def certificates_list_handler(request, course_key_string): course_id=course.id, include_expired=True ) if mode.slug != 'audit' ] - certificate_web_view_url = get_lms_link_for_certificate_web_view( - user_id=request.user.id, - course_key=course_key, - mode=course_modes[0] # CourseMode.modes_for_course returns default mode if doesn't find anyone. - ) + if len(course_modes) > 0: + certificate_web_view_url = get_lms_link_for_certificate_web_view( + user_id=request.user.id, + course_key=course_key, + mode=course_modes[0] # CourseMode.modes_for_course returns default mode if doesn't find anyone. + ) + else: + certificate_web_view_url = None certificates = None is_active = False if settings.FEATURES.get('CERTIFICATES_HTML_VIEW', False): diff --git a/cms/envs/aws.py b/cms/envs/aws.py index 3d7093431d..bdb670eb66 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -177,6 +177,7 @@ ASSET_IGNORE_REGEX = ENV_TOKENS.get('ASSET_IGNORE_REGEX', ASSET_IGNORE_REGEX) # Theme overrides THEME_NAME = ENV_TOKENS.get('THEME_NAME', None) +COMPREHENSIVE_THEME_DIR = path(ENV_TOKENS.get('COMPREHENSIVE_THEME_DIR', COMPREHENSIVE_THEME_DIR)) #Timezone overrides TIME_ZONE = ENV_TOKENS.get('TIME_ZONE', TIME_ZONE) diff --git a/cms/envs/common.py b/cms/envs/common.py index 6cfcede38d..71493e06ec 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -31,7 +31,8 @@ import lms.envs.common # Although this module itself may not use these imported variables, other dependent modules may. from lms.envs.common import ( USE_TZ, TECH_SUPPORT_EMAIL, PLATFORM_NAME, BUGS_EMAIL, DOC_STORE_CONFIG, DATA_DIR, ALL_LANGUAGES, WIKI_ENABLED, - update_module_store_settings, ASSET_IGNORE_REGEX, COPYRIGHT_YEAR, PARENTAL_CONSENT_AGE_LIMIT, COMP_THEME_DIR, + update_module_store_settings, ASSET_IGNORE_REGEX, COPYRIGHT_YEAR, + PARENTAL_CONSENT_AGE_LIMIT, COMPREHENSIVE_THEME_DIR, # The following PROFILE_IMAGE_* settings are included as they are # indirectly accessed through the email opt-in API, which is # technically accessible through the CMS via legacy URLs. @@ -467,12 +468,12 @@ EMBARGO_SITE_REDIRECT_URL = None PIPELINE_ENABLED = True -# Process static files using RequireJS Optimizer -STATICFILES_STORAGE = 'openedx.core.lib.django_require.staticstorage.OptimizedCachedRequireJsStorage' +STATICFILES_STORAGE = 'openedx.core.storage.ProductionStorage' # List of finder classes that know how to find static files in various locations. # Note: the pipeline finder is included to be able to discover optimized files STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'pipeline.finders.PipelineFinder', diff --git a/cms/envs/devstack.py b/cms/envs/devstack.py index 127eb8a3a1..c19db5e9b0 100644 --- a/cms/envs/devstack.py +++ b/cms/envs/devstack.py @@ -37,10 +37,11 @@ FEATURES['PREVIEW_LMS_BASE'] = "preview." + LMS_BASE # Skip packaging and optimization in development PIPELINE_ENABLED = False -STATICFILES_STORAGE = 'pipeline.storage.NonPackagingPipelineStorage' +STATICFILES_STORAGE = 'openedx.core.storage.DevelopmentStorage' # Revert to the default set of finders as we don't want the production pipeline STATICFILES_FINDERS = [ + 'openedx.core.djangoapps.theming.finders.ComprehensiveThemeFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', ] diff --git a/cms/static/images/default-theme/logo.png b/cms/static/images/studio-logo.png similarity index 100% rename from cms/static/images/default-theme/logo.png rename to cms/static/images/studio-logo.png diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html index 8c1e21fbbf..08a9bf2130 100644 --- a/cms/templates/widgets/footer.html +++ b/cms/templates/widgets/footer.html @@ -11,16 +11,22 @@ from django.core.urlresolvers import reverse

© ${settings.COPYRIGHT_YEAR} ${settings.PLATFORM_NAME}.

- + % if is_any_marketing_link_set(['TOS', 'PRIVACY']): + + % endif