diff --git a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py index 35b3cde253..e61462fecb 100644 --- a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py +++ b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py @@ -78,6 +78,8 @@ def send_ace_message(goal): 'image_url': image_url, 'unsubscribe_url': None, # We don't want to include the default unsubscribe link 'omit_unsubscribe_link': True, + 'courses_url': getattr(settings, 'ACE_EMAIL_COURSES_URL', None), + 'programs_url': getattr(settings, 'ACE_EMAIL_PROGRAMS_URL', None), }) msg = Message( diff --git a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html index 5693fc78b7..23910941b6 100644 --- a/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html +++ b/lms/djangoapps/course_goals/templates/course_goals/edx_ace/goalreminder/email/head.html @@ -2,13 +2,10 @@ {% block additional_styles %} - + margin: 0; + padding: 0; + min-width: 100%; + background-color: #f5f5f5; + "> + + - + - - + - - - + + + + + + + + + + - + diff --git a/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html b/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html index 466d26441c..6932b3b633 100644 --- a/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html +++ b/openedx/core/djangoapps/ace_common/templates/ace_common/edx_ace/common/base_head.html @@ -33,5 +33,22 @@ padding-bottom: 20px; } } + * {margin-top:0px;margin-bottom:0px;padding:0px;border:none;outline:none;list-style:none;-webkit-text-size-adjust: none;} + body {margin:0 !important;padding:0 !important;width: 100% !important;-webkit-text-size-adjust: 100% !important;-ms-text-size-adjust: 100% !important;-webkit-font-smoothing: antialiased !important;} + img {border:0 !important;display: block !important;outline: none !important;} + table {border-collapse: collapse;mso-table-lspace:0px;mso-table-rspace: 0px;} + td {border-collapse:collapse;mso-line-height-rule:exactly;} + + @media only screen and (max-width:480px){ + .width_100percent {width: 100% !important;} + .min_width {min-width: 320px !important;} + .mobile_img {width: 100% !important; height: auto !important;} + .background_none {background: none !important;} + .display_block {display: block !important;} + + .height_0 {height: 0 !important;} + .padding_none {padding-left: 0 !important; padding-right: 0 !important;} + .paddingtop_10 {padding-top: 10px !important;} + } {% block additional_styles %}{% endblock %}