From a52f03902964ab080380ec0e8eec9be321d304c3 Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Sun, 16 Oct 2016 22:06:43 -0400 Subject: [PATCH] Start a separate Fund Open Source page --- templates/base.html | 21 ++++++++++++++--- www/fund-open-source/index.html.spt | 36 +++++++++++++++++++++++++++++ www/fund-open-source/report.spt | 9 ++++++++ 3 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 www/fund-open-source/index.html.spt create mode 100644 www/fund-open-source/report.spt diff --git a/templates/base.html b/templates/base.html index 6752c54838..08dfdf1759 100644 --- a/templates/base.html +++ b/templates/base.html @@ -67,8 +67,23 @@

{{ banner }}

{% endif %}{% endblock %} - {% if request.path.raw != '/1.0-payout' %} - {% if not user.participant or user.participant.status_of_1_0_payout == 'pending-application' %} + {% if not request.path.raw.startswith('/fund-open-source/') %} + + + + + + +
{{ _( "{nowrap}Gratipay is a great way to{_nowrap} {nowrap}{a}fund open source!{_a}{_nowrap}" + , nowrap=''|safe + , _nowrap=''|safe + , a=''|safe + , _a=''|safe + ) }}
+ {% endif %} + + {% if user.participant and request.path.raw.startswith('/~/%s/' % user.participant.username) %} + {% if user.participant.status_of_1_0_payout == 'pending-application' %} @@ -82,7 +97,7 @@

- {% elif user.participant and user.participant.status_of_1_0_payout in ('pending-review', 'pending-payout') %} + {% elif user.participant.status_of_1_0_payout in ('pending-review', 'pending-payout') %} diff --git a/www/fund-open-source/index.html.spt b/www/fund-open-source/index.html.spt new file mode 100644 index 0000000000..1489968a48 --- /dev/null +++ b/www/fund-open-source/index.html.spt @@ -0,0 +1,36 @@ +from collections import OrderedDict +[---] +title = _("Fund Open Source") +suppress_sidebar = True +[---] +{% extends "templates/base.html" %} +{% block head_early %} + {% if website.optimizely_id and request.headers.get('DNT') != '1' %} + + {% endif %} +{% endblock %} +{% block head %} + + + + + + + + +{% endblock %} + +{% block content %} + +

{{ _("Gratipay is a great way to fund the open source software projects that your company or organization depends on! Keep the open source ecosystem sustainable for years to come by locating the open source projects in your technology stack, and funding them with one simple weekly payment on Gratipay.") }}

+ +

Step 1: Analyze Your Code

+ +

{{ _("Paste the URL of your GitHub repo. We'll show you a report of all your open source dependencies (along with their licenses).") }}

+ + + + + + +{% endblock %} diff --git a/www/fund-open-source/report.spt b/www/fund-open-source/report.spt new file mode 100644 index 0000000000..febb95487f --- /dev/null +++ b/www/fund-open-source/report.spt @@ -0,0 +1,9 @@ +[---] +suppress_sidebar = True +title = _("Your Open Source Inventory Report") +[---] text/html +{% extends "templates/base.html" %} + +{% block content %} +Here it is ... almost! +{% endblock %}