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
Bulk-add from /on/npm/
based on verified email addresses
#4416
Comments
This was referenced Apr 21, 2017
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 ... |
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 %} |
Moving to #4488. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reticketed from #4305.
API should mostly be there.
The text was updated successfully, but these errors were encountered: