Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Vary message on unclaimed package for anon
Browse files Browse the repository at this point in the history
Smooths out the experience a tad for proto-givers.
  • Loading branch information
chadwhitacre committed Jun 15, 2017
1 parent b81084e commit 8fdc4a0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions www/on/npm/%package/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,22 @@ if user.participant:
<p class="sorry important-thing-at-the-top">{{ _("No description available.") }}</p>
{% endif %}

<p class="instructions">
{{ _( 'Apply to accept payments for the {package_link} npm package:'
, package_link=('<a href="' + package.remote_human_url + '">' + package_name + '</a>')|safe
) }}
</p>

{% if user.ANON %}
<p class="instructions">
{{ _( 'Claim the {package_link} npm package on Gratipay:'
, package_link=('<a href="' + package.remote_human_url + '">' + package_name + '</a>')|safe
) }}
</p>
<div class="important-button">
{{ sign_in_using(button_class='large') }}
</div>
{% else %}
<p class="instructions">
{{ _( 'Apply to accept payments for the {package_link} npm package:'
, package_link=('<a href="' + package.remote_human_url + '">' + package_name + '</a>')|safe
) }}
</p>

{% if len(emails) == 0 %}
<p class="sorry">{{ _("No email addresses on file.") }}</p>
{% else %}
Expand Down

0 comments on commit 8fdc4a0

Please sign in to comment.