From d3dcca2f493d50575ebb4f2c5f12b8a766511f41 Mon Sep 17 00:00:00 2001
From: Nimisha Asthagiri
+ {# email client support for style sheets is pretty spotty, so we have to inline all of these styles #}
+ 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: 12px solid #005686;
+ border-bottom: 12px solid #005686;
+ border-right: 50px solid #005686;
+ border-left: 50px solid #005686;
+ display: inline-block;
+ ">
+ {# old email clients require the use of the font tag :( #}
+ {{ course_cta_text }}
+
+
+ {% blocktrans trimmed %}
+ Don't miss the opportunity to highlight your new knowledge and skills by earning a verified
+ certificate. Upgrade by {{ user_schedule_upgrade_deadline_time }}.
+ {% endblocktrans %}
+
- {# email client support for style sheets is pretty spotty, so we have to inline all of these styles #} - 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: 12px solid #005686; - border-bottom: 12px solid #005686; - border-right: 50px solid #005686; - border-left: 50px solid #005686; - display: inline-block; - "> - {# old email clients require the use of the font tag :( #} - {% trans "Keep learning" %} - -
+ {% trans "Keep learning" as course_cta_text %} + {% include "schedules/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%} - {% if show_upsell %} -- {% blocktrans trimmed %} - Don't miss the opportunity to highlight your new knowledge and skills by earning a verified - certificate. Upgrade by {{ user_schedule_upgrade_deadline_time }}. - {% endblocktrans %} -
-- - {% trans "Upgrade Now" %} - -
- {% endif %} + {% include "schedules/edx_ace/common/upsell_cta.html"%} diff --git a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt index 96dceea942..f6921804cf 100644 --- a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt +++ b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt @@ -12,11 +12,5 @@ {% endblocktrans %} {% trans "Keep learning" %} <{{course_url}}> {% endif %} -{% if show_upsell %} -{% blocktrans trimmed %} - Don't miss the opportunity to highlight your new knowledge and skills by earning a verified - certificate. Upgrade by {{ user_schedule_upgrade_deadline_time }}. - Upgrade Now! <{{ upsell_link }}> -{% endblocktrans %} -{% endif %} +{% include "schedules/edx_ace/common/upsell_cta.txt"%} diff --git a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html index 40122bb22b..551ba7792b 100644 --- a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html +++ b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html @@ -35,55 +35,10 @@ {% endif %} -- {# email client support for style sheets is pretty spotty, so we have to inline all of these styles #} - 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: 12px solid #005686; - border-bottom: 12px solid #005686; - border-right: 50px solid #005686; - border-left: 50px solid #005686; - display: inline-block; - "> - {# old email clients require the use of the font tag :( #} - {% trans "Start learning now" %} - -
- {% if show_upsell %} -- {% blocktrans trimmed %} - Don't miss the opportunity to highlight your new knowledge and skills by earning a verified - certificate. Upgrade by {{ user_schedule_upgrade_deadline_time }}. - {% endblocktrans %} -
- - {% endif %} + {% trans "Start learning now" as course_cta_text %} + {% include "schedules/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%} + + {% include "schedules/edx_ace/common/upsell_cta.html"%} diff --git a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt index a6704ac851..9a1afec99c 100644 --- a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt +++ b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt @@ -16,11 +16,4 @@ {% trans "Start learning now" %} <{{ course_url }}> {% endif %} -{% if show_upsell %} -{% blocktrans trimmed %} - Don't miss the opportunity to highlight your new knowledge and skills by earning a verified - certificate. Upgrade by {{ user_schedule_upgrade_deadline_time }}. - - Upgrade Now! <{{ upsell_link }}> -{% endblocktrans %} -{% endif %} +{% include "schedules/edx_ace/common/upsell_cta.txt"%} 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 df23ac1b12..d545d5f24f 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 @@ -20,8 +20,6 @@ Upgrade by {{ user_schedule_upgrade_deadline_time }}. {% endblocktrans %} {% endif %} - {% blocktrans trimmed %} - {% endblocktrans %} {% endblock %} {% block content %}