diff --git a/tests/py/test_www_npm_package.py b/tests/py/test_www_npm_package.py index 99001c2410..5f465d058b 100644 --- a/tests/py/test_www_npm_package.py +++ b/tests/py/test_www_npm_package.py @@ -12,7 +12,7 @@ def setUp(self): def test_anon_gets_signin_page_from_unclaimed(self): body = self.client.GET('/on/npm/foo/').body - assert 'foo npm package:' in body + assert 'foo npm package on Gratipay:' in body def test_auth_gets_send_confirmation_page_from_unclaimed(self): self.make_participant('bob', claimed_time='now') diff --git a/www/on/npm/%package/index.html.spt b/www/on/npm/%package/index.html.spt index 9efb9543bb..0703212df9 100644 --- a/www/on/npm/%package/index.html.spt +++ b/www/on/npm/%package/index.html.spt @@ -51,17 +51,22 @@ if user.participant:
{{ _("No description available.") }}
{% endif %} -- {{ _( 'Apply to accept payments for the {package_link} npm package:' - , package_link=('' + package_name + '')|safe - ) }} -
- {% if user.ANON %} ++ {{ _( 'Claim the {package_link} npm package on Gratipay:' + , package_link=('' + package_name + '')|safe + ) }} +
{% else %} ++ {{ _( 'Apply to accept payments for the {package_link} npm package:' + , package_link=('' + package_name + '')|safe + ) }} +
+ {% if len(emails) == 0 %}{{ _("No email addresses on file.") }}
{% else %}