From 791b9d8e5df5224d41fb4d50cb50cf1c456fc42a Mon Sep 17 00:00:00 2001 From: adeelehsan Date: Wed, 15 May 2019 15:07:14 +0500 Subject: [PATCH] Updated ICP license in edx footer changed ICP license to link and added sentence with ICP license PROD-277 --- lms/envs/production.py | 1 + lms/templates/footer.html | 19 +++++++++++++++++-- themes/edx.org/lms/templates/footer.html | 8 +++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/lms/envs/production.py b/lms/envs/production.py index 9e9efe918e..99742be2e3 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -1049,6 +1049,7 @@ COURSES_API_CACHE_TIMEOUT = ENV_TOKENS.get('COURSES_API_CACHE_TIMEOUT', COURSES_ # Add an ICP license for serving content in China if your organization is registered to do so ICP_LICENSE = ENV_TOKENS.get('ICP_LICENSE', None) +ICP_LICENSE_INFO = ENV_TOKENS.get('ICP_LICENSE_INFO', {}) ############## Settings for CourseGraph ############################ COURSEGRAPH_JOB_QUEUE = ENV_TOKENS.get('COURSEGRAPH_JOB_QUEUE', DEFAULT_PRIORITY_QUEUE) diff --git a/lms/templates/footer.html b/lms/templates/footer.html index bf76031d26..f682ff586b 100644 --- a/lms/templates/footer.html +++ b/lms/templates/footer.html @@ -7,6 +7,7 @@ from openedx.core.djangoapps.lang_pref.api import footer_language_selector_is_enabled %> <% footer = get_footer(is_secure=is_secure) %> +<% icp_license_info = getattr(settings, 'ICP_LICENSE_INFO', {})%> <%namespace name='static' file='static_content.html'/> % if uses_bootstrap: @@ -25,7 +26,14 @@ ## Site operators: Please do not remove this paragraph! This attributes back to edX and makes your acknowledgement of edX's trademarks clear. - +