Skip to content

Commit

Permalink
Cta button string update
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeerahman committed Nov 9, 2023
1 parent 70631c5 commit a2a5a34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emails/templates/emails/first_time_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h1 class="hero-title" style="margin: 0px; color: #ffffff; line-height: 100%; te
<p style="color: #321C64; font-size: 18px; font-family: metropolis medium, system-ui, sans-serif;">{% ftlmsg 'first-time-user-email-hero-primary-text' %}</p>
<p style="color: #321C64; font-size: 18px; font-family: metropolis medium, system-ui, sans-serif;margin-top: 20px;">{% ftlmsg 'first-time-user-email-hero-secondary-text' %}</p>

<a href="{{ SITE_ORIGIN }}/accounts/profile/?utm_campaign=relay-onboarding&utm_source=relay-onboarding&utm_medium=email&utm_content=hero-cta" target="_blank" class="button" style="margin-top: 30px; color: #FFFFFF;" rel="noreferrer">{% ftlmsg 'first-time-user-email-hero-cta' %}</a>
<a href="{{ SITE_ORIGIN }}/accounts/profile/?utm_campaign=relay-onboarding&utm_source=relay-onboarding&utm_medium=email&utm_content=hero-cta" target="_blank" class="button" style="margin-top: 30px; color: #FFFFFF;" rel="noreferrer">{% ftlmsg 'first-time-user-email-cta-dashboard-button' %}</a>

</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion emails/tests/mgmt_send_welcome_emails_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_send_welcome_emails(
assert source == settings.RELAY_FROM_ADDRESS
with django_ftl.override(user.profile.language):
expected_subject = ftl_bundle.format("first-time-user-email-welcome")
expected_cta = ftl_bundle.format("first-time-user-email-hero-cta")
expected_cta = ftl_bundle.format("first-time-user-email-cta-dashboard-button")
assert subject == expected_subject
assert expected_cta in body_html

Expand Down
1 change: 1 addition & 0 deletions privaterelay/pending_locales/en/pending.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

# This is the Django equivalent of frontend/pendingTranslations.ftl

first-time-user-email-cta-dashboard-button = Learn to use { -brand-name-relay }

0 comments on commit a2a5a34

Please sign in to comment.