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

Bulk-add from /on/npm/ based on verified email addresses #4416

Closed
chadwhitacre opened this issue Apr 21, 2017 · 4 comments
Closed

Bulk-add from /on/npm/ based on verified email addresses #4416

chadwhitacre opened this issue Apr 21, 2017 · 4 comments

Comments

@chadwhitacre
Copy link
Contributor

Reticketed from #4305.

API should mostly be there.

@chadwhitacre
Copy link
Contributor Author

This would also give us a landing page that we could use for Product Hunt under gratipay/inside.gratipay.com#1045. Gonna see if I can knock something out right quick ...

@chadwhitacre
Copy link
Contributor Author

screen shot 2017-05-18 at 11 37 09 am

@chadwhitacre
Copy link
Contributor Author

Shelving a diff against 6f25fe2.

diff --git a/www/on/npm/%package/index.html.spt b/www/on/npm/%package/index.html.spt
index 7066653..7f6c5a5 100644
--- a/www/on/npm/%package/index.html.spt
+++ b/www/on/npm/%package/index.html.spt
@@ -55,7 +55,7 @@ if user.participant:
     {{ _( 'Apply to accept payments for the {package_link} npm package:'
         , package_link=('<a href="' + package.remote_human_url + '">' + package_name + '</a>')|safe
          ) }}
- </p>
+</p>
 
 {% if user.ANON %}
     <div class="button-wrapper">
diff --git a/www/on/npm/index.html.spt b/www/on/npm/index.html.spt
index e751da7..85d083c 100644
--- a/www/on/npm/index.html.spt
+++ b/www/on/npm/index.html.spt
@@ -1,9 +1,29 @@
 [---]
-title = "Search npm"
+banner = "npm"
+page_id = "package"
 suppress_sidebar = True
-website.redirect('/')  # nothing here yet
+npackages, Npackages = website.db.one('''
+    select (select count(*) from teams_to_packages) as n, (select count(*) from packages) as t
+''')
 [---]
 {% extends "templates/base.html" %}
 {% block content %}
-<input type="text" name="q"> <button class="selected">Search</button>
+
+<p class="description important-thing-at-the-top">
+    {{ _( "{n} out of {N} npm packages are on Gratipay."
+        , n=format_number(npackages)
+        , N=format_number(Npackages)
+         ) }}
+</p>
+
+<p class="instructions">
+    {{ _('Apply to accept payments for your npm packages:') }}
+</p>
+
+{% if user.ANON %}
+    <div class="button-wrapper">
+        {{ sign_in_using(button_class='large') }}
+    </div>
+{% else %}
+{% endif %}
 {% endblock %}

@chadwhitacre
Copy link
Contributor Author

Moving to #4488.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant