diff --git a/openedx/core/djangoapps/schedules/tasks.py b/openedx/core/djangoapps/schedules/tasks.py index 2e8dcff8f9..b1b01eefae 100644 --- a/openedx/core/djangoapps/schedules/tasks.py +++ b/openedx/core/djangoapps/schedules/tasks.py @@ -6,6 +6,7 @@ from celery.task import task from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site +from django.contrib.staticfiles.templatetags.staticfiles import static from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.db.models import F, Min @@ -285,6 +286,7 @@ def _upgrade_reminder_schedules_for_bin(target_day, bin_num, org_list, exclude_o # This is used by the bulk email optout policy 'course_ids': course_id_strs, + 'cert_image': absolute_url(static('course_experience/images/verified-cert.png')), }) yield (user, first_schedule.enrollment.course.language, template_context) diff --git a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html index 6d02528764..d33c12d25f 100644 --- a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html +++ b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html @@ -1,5 +1,6 @@ {% extends 'schedules/edx_ace/common/base_body.html' %} {% load i18n %} +{% load static %} {% block preview_text %} {% blocktrans trimmed %} @@ -29,26 +30,39 @@ {% endblocktrans %}

+ + {% blocktrans %}Example print-out of a verified certificate{% endblocktrans %} + +

1 %} - href="{{ dashboard_url }}" - {% else %} href="{{ course_url }}" - {% endif %} - style=" - color: #ffffff; - text-decoration: none; - border-radius: 4px; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - background-color: #005686; - border-top: 10px solid #005686; - border-bottom: 10px solid #005686; - border-right: 16px solid #005686; - border-left: 16px solid #005686; - display: inline-block; + style=" + color: #ffffff; + text-decoration: none; + border-radius: 4px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + background-color: #005686; + border-top: 10px solid #005686; + border-bottom: 10px solid #005686; + border-right: 16px solid #005686; + border-left: 16px solid #005686; + display: inline-block; "> {% trans "Upgrade now" %}