This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Send confirmation email #4335
Merged
Merged
Send confirmation email #4335
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
617eca2
Improvements to fake_data.make_package
chadwhitacre 3c86a13
Factor out a method to clarify logic in add_email
chadwhitacre 7ebd268
Add packages parameter to start_email_verification
chadwhitacre 3d06713
Rename start_email_verification to get_*_link
chadwhitacre 8cc556e
Rename add_email to start_email_verification
chadwhitacre 46792fd
Fix subtle bug in test_adds_events
chadwhitacre 85e4378
Refactor email verification methods
chadwhitacre 9e5cd99
Make some guesses at what recursion is about
chadwhitacre 64017dd
Clean up a few little things
chadwhitacre 0c91a13
Beef up test suite around start_email_verification
chadwhitacre ca9a6b6
Move cursor creation up a level
chadwhitacre a694122
Add *packages param to start_email_verification
chadwhitacre e66262f
Clear out old claims on resend
chadwhitacre 437f4a7
Remove claims when emails removed
chadwhitacre 86ccce4
LazyResponse -> LocalizedErrorResponse
chadwhitacre 2e979de
Clean up error handling
chadwhitacre 8799c69
Expose packages arg in the modify.json endpoint
chadwhitacre 8eba761
Update ttw tests
chadwhitacre 53b7fb9
Start standardizing on dash in email template name
chadwhitacre 01c837f
Extend verification template for package claiming
chadwhitacre 136591a
Give more details about Aspen workaround
chadwhitacre 2c2a3a5
Make somewhat clever function a little clearer
chadwhitacre 9926985
Fix regression in start_package_claims
chadwhitacre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{{ _("New activity on your account") }} | ||
|
||
[---] text/html | ||
{% if new_email_verified %} | ||
{{ ngettext( "We are connecting the {package_name} npm package to the {username} account on " | ||
"Gratipay. This is a notification sent to {email_address} because that is the " | ||
"primary email address we have on file." | ||
, "We are connecting {n} npm packages to the {username} account on Gratipay. This is " | ||
"a notification sent to {email_address} because that is the primary email address " | ||
"we have on file." | ||
, n=npackages | ||
, package_name=('<b>{}</b>'|safe).format(package_name) | ||
, username=('<b><a href="https://gratipay.com/{0}/">{0}</a></b>'|safe).format(username) | ||
, email_address=('<b>{}</b>'|safe).format(email) | ||
) }} | ||
{% elif npackages > 0 %} | ||
{{ ngettext( "We are connecting {email_address} and the {package_name} npm package to the " | ||
"{username} account on Gratipay. This is a notification sent to {email_address_2} " | ||
"because that is the primary email address we have on file." | ||
, "We are connecting {email_address} and {n} npm packages to the {username} account on " | ||
"Gratipay. This is a notification sent to {email_address_2} because that is the " | ||
"primary email address we have on file." | ||
, n=npackages | ||
, package_name=('<b>{}</b>'|safe).format(package_name) | ||
, username=('<b><a href="https://gratipay.com/{0}/">{0}</a></b>'|safe).format(username) | ||
, email_address=('<b>{}</b>'|safe).format(new_email) | ||
, email_address_2=('<b>{}</b>'|safe).format(email) | ||
) }} | ||
{% else %} | ||
{{ _( "We are connecting {email_address} to the {username} account on Gratipay. This is a " | ||
"notification sent to {email_address_2} because that is the primary email address we have " | ||
"on file." | ||
, username=('<b><a href="https://gratipay.com/{0}/">{0}</a></b>'|safe).format(username) | ||
, email_address=('<b>{}</b>'|safe).format(new_email) | ||
, email_address_2=('<b>{}</b>'|safe).format(email) | ||
) }} | ||
{% endif %} | ||
[---] text/plain | ||
{% if new_email_verified %} | ||
{{ ngettext( "We are connecting the {package_name} npm package to the {username} account on " | ||
"Gratipay. This is a notification sent to {email_address} because that is the " | ||
"primary email address we have on file." | ||
, "We are connecting {n} npm packages to the {username} account on Gratipay. This is " | ||
"a notification sent to {email_address} because that is the primary email address " | ||
"we have on file." | ||
, n=npackages | ||
, package_name=package_name | ||
, username=username | ||
, email_address=email | ||
) }} | ||
{% elif npackages > 0 %} | ||
{{ ngettext( "We are connecting {email_address} and the {package_name} npm package to the " | ||
"{username} account on Gratipay. This is a notification sent to {email_address_2} " | ||
"because that is the primary email address we have on file." | ||
, "We are connecting {email_address} and {n} npm packages to the {username} account on " | ||
"Gratipay. This is a notification sent to {email_address_2} because that is the " | ||
"primary email address we have on file." | ||
, n=npackages | ||
, package_name=package_name | ||
, username=username | ||
, email_address=new_email | ||
, email_address_2=email | ||
) }} | ||
{% else %} | ||
{{ _( "We are connecting {email_address} to the {username} account on Gratipay. This is a " | ||
"notification sent to {email_address_2} because that is the primary email address we have " | ||
"on file." | ||
, username=username | ||
, email_address=new_email | ||
, email_address_2=email | ||
) }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if it doesn't sound familiar?
What if it does, for that matter? I don't really know what I would do if I received an email like this.
Am I supposed to click the package name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Down on line 32 there's a "Yes, proceed!" button. Here's what it looks like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, woops - didn't see that! Thanks!