diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 4952abed45..bf0deab099 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -331,6 +331,10 @@ FOOTER_ORGANIZATION_IMAGE = ENV_TOKENS.get('FOOTER_ORGANIZATION_IMAGE', FOOTER_O FOOTER_CACHE_TIMEOUT = ENV_TOKENS.get('FOOTER_CACHE_TIMEOUT', FOOTER_CACHE_TIMEOUT) FOOTER_BROWSER_CACHE_MAX_AGE = ENV_TOKENS.get('FOOTER_BROWSER_CACHE_MAX_AGE', FOOTER_BROWSER_CACHE_MAX_AGE) +# Credit notifications settings +NOTIFICATION_EMAIL_CSS = ENV_TOKENS.get('NOTIFICATION_EMAIL_CSS', NOTIFICATION_EMAIL_CSS) +NOTIFICATION_EMAIL_EDX_LOGO = ENV_TOKENS.get('NOTIFICATION_EMAIL_EDX_LOGO', NOTIFICATION_EMAIL_EDX_LOGO) + ############# CORS headers for cross-domain requests ################# if FEATURES.get('ENABLE_CORS_HEADERS') or FEATURES.get('ENABLE_CROSS_DOMAIN_CSRF_COOKIE'): diff --git a/lms/envs/common.py b/lms/envs/common.py index 0189b7dbc7..36b6fbcfe9 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1097,6 +1097,9 @@ FOOTER_CACHE_TIMEOUT = 30 * 60 # Max age cache control header for the footer (controls browser caching). FOOTER_BROWSER_CACHE_MAX_AGE = 5 * 60 +# Credit api notification cache timeout +CREDIT_NOTIFICATION_CACHE_TIMEOUT = 5 * 60 * 60 + ################################# Deprecation warnings ##################### # Ignore deprecation warnings (so we don't clutter Jenkins builds/production) @@ -2572,3 +2575,7 @@ LTI_USER_EMAIL_DOMAIN = 'lti.example.com' # Number of seconds before JWT tokens expire JWT_EXPIRATION = 30 JWT_ISSUER = None + +# Credit notifications settings +NOTIFICATION_EMAIL_CSS = "templates/credit_notifications/credit_notification.css" +NOTIFICATION_EMAIL_EDX_LOGO = "templates/credit_notifications/edx-logo-header.png" diff --git a/lms/templates/credit_notifications/credit_eligibility_email.html b/lms/templates/credit_notifications/credit_eligibility_email.html new file mode 100644 index 0000000000..3d5ee38bbb --- /dev/null +++ b/lms/templates/credit_notifications/credit_eligibility_email.html @@ -0,0 +1,80 @@ +<%! from django.utils.translation import ugettext as _ %> + + + +
+ +
+
|
+