From 935da3a12cca443f72c574a64ccc67a03fbde5c4 Mon Sep 17 00:00:00 2001 From: aamir-khan Date: Tue, 30 Jun 2015 17:02:02 +0500 Subject: [PATCH] ECOM-1601: Added the help link of credit info --- lms/envs/aws.py | 3 +++ lms/envs/common.py | 3 +++ lms/static/sass/course/_profile.scss | 4 +++- lms/templates/courseware/progress.html | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index 221b785966..68b94a14da 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -689,3 +689,6 @@ ENV_TOKENS.get('CERTIFICATES_STATIC_VERIFY_URL', CERTIFICATES_STATIC_VERIFY_URL) if FEATURES.get('ENABLE_LTI_PROVIDER'): INSTALLED_APPS += ('lti_provider',) AUTHENTICATION_BACKENDS += ('lti_provider.users.LtiBackend', ) + +##################### Credit Provider help link #################### +CREDIT_HELP_LINK_URL = ENV_TOKENS.get('CREDIT_HELP_LINK_URL', CREDIT_HELP_LINK_URL) diff --git a/lms/envs/common.py b/lms/envs/common.py index 80f42ff210..8cba20cf90 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -2566,6 +2566,9 @@ CREDIT_PROVIDER_SECRET_KEYS = {} # or denied for credit. CREDIT_PROVIDER_TIMESTAMP_EXPIRATION = 15 * 60 +# The Help link to the FAQ page about the credit +CREDIT_HELP_LINK_URL = "#" + # Default domain for the e-mail address associated with users who are created # via the LTI Provider feature. Note that the generated e-mail addresses are # not expected to be active; this setting simply allows administrators to diff --git a/lms/static/sass/course/_profile.scss b/lms/static/sass/course/_profile.scss index e43f497777..4b556f51f9 100644 --- a/lms/static/sass/course/_profile.scss +++ b/lms/static/sass/course/_profile.scss @@ -187,14 +187,16 @@ > .credit-eligibility-container { padding: lh(); > .credit-help { + display: inline-block; background: $blue; color: $white; - width: lh(); + width: lh(0.6); margin: 0; padding: 0; border-radius: lh(0.9); border-color: $white; text-shadow: None; + @include padding-left(0.2em); } > .detail-collapse{ border: none; diff --git a/lms/templates/courseware/progress.html b/lms/templates/courseware/progress.html index b34d48e954..fe0c706371 100644 --- a/lms/templates/courseware/progress.html +++ b/lms/templates/courseware/progress.html @@ -114,7 +114,7 @@ from django.utils.http import urlquote_plus %elif credit_course_requirements['eligibility_status'] == 'partial_eligible': ${student.get_full_name()}, ${_("You have not yet met the requirements for credit.")} %endif -
+ Help regarding course credit requirements
%for requirement in credit_course_requirements['requirements']: