diff --git a/tests/ttw/test_package_claiming.py b/tests/ttw/test_package_claiming.py index 5feed00d7b..5f8a1549d4 100644 --- a/tests/ttw/test_package_claiming.py +++ b/tests/ttw/test_package_claiming.py @@ -69,13 +69,14 @@ def test_that_claimed_packages_can_be_given_to(self): 'Thank you so much for supporting foo!' - def test_visiting_verify_link_shows_packages_newly_claimed(self): + def test_visiting_verify_link_shows_helpful_information(self): self.make_package() self.check() link = pickle.loads(self.db.one('select context from email_queue'))['link'] link = link[len(self.base_url):] # strip because visit will add it back - self.sign_in('alice') self.visit(link) + assert self.css('.withdrawal-notice a').text == 'update' + assert self.css('.withdrawal-notice b').text == 'alice@example.com' assert self.css('.listing-name').text == 'foo' diff --git a/www/~/%username/emails/verify.html.spt b/www/~/%username/emails/verify.html.spt index 14fd8e93f0..555eed1b8a 100644 --- a/www/~/%username/emails/verify.html.spt +++ b/www/~/%username/emails/verify.html.spt @@ -73,9 +73,24 @@ suppress_sidebar = True

{{ _("Bad Info") }}

{{ _("Sorry, that's a bad or expired link. You'll need to start over.") }}

{% endif %} - {{ _("View your email addresses") }}. + +

+ {{ _("View your email addresses") }}. +

+ + {% if paypal_updated %} +

{{ _("Withdrawals") }}

+

+ {{ _( "We will send your money via PayPal to {email_address} ({a}update{_a})." + , email_address=("%s"|safe) % email_address + , a=''|safe + , _a=''|safe + ) }} +

+ {% endif %} + {% if project_list %} -

{{ _("Your New Projects") }}

+

{{ _("New Projects") }}

{% include "templates/project-listing.html" %}