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

Commit

Permalink
Start a separate Fund Open Source page
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Oct 17, 2016
1 parent 1008f6b commit a52f039
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
21 changes: 18 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,23 @@ <h1><a href="/"><img src="{{ website.asset('gratipay.svg') }}"
{% block banner %}{% if banner %}<h1>{{ banner }}</h1>{% endif %}{% endblock %}
</div>

{% 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/') %}
<table id="notice">
<tr>
<td>&#x2605;</td>
<td>{{ _( "{nowrap}Gratipay is a great way to{_nowrap} {nowrap}{a}fund open source!{_a}{_nowrap}"
, nowrap='<span class="nowrap">'|safe
, _nowrap='</span>'|safe
, a='<a href="/fund-open-source/">'|safe
, _a='</a>'|safe
) }}</td>
<td>&#x2605;</td>
</tr>
</table>
{% endif %}

{% if user.participant and request.path.raw.startswith('/~/%s/' % user.participant.username) %}
{% if user.participant.status_of_1_0_payout == 'pending-application' %}
<table id="notice">
<tr>
<td>&#x2605;</td>
Expand All @@ -82,7 +97,7 @@ <h1><a href="/"><img src="{{ website.asset('gratipay.svg') }}"
<td>&#x2605;</td>
</tr>
</table>
{% 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') %}
<table id="notice">
<tr>
<td>&#x2605;</td>
Expand Down
36 changes: 36 additions & 0 deletions www/fund-open-source/index.html.spt
Original file line number Diff line number Diff line change
@@ -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' %}
<script src="//cdn.optimizely.com/js/{{ website.optimizely_id }}.js"></script>
{% endif %}
{% endblock %}
{% block head %}
<link rel="publisher" href="https://plus.google.com/104524895706770139568">
<link type="application/opensearchdescription+xml" rel="search" href="/opensearch.osdd" />
<meta name="description" content="Support Free Software" />
<meta name="fb:app_id" content="229465400522758" />
<meta name="og:type" content="website" />
<meta name="og:url" content="https://gratipay.com/" />
<meta name="og:title" content="Gratipay" />
<meta name="og:image" content="{{ website.asset('gratipay.opengraph.png') }}" />
{% endblock %}

{% block content %}

<p>{{ _("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.") }}</p>

<h2>Step 1: Analyze Your Code</h2>

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

<form action="/fund-open-source/report" method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}" />
<input type="text" value="https://github.com/gratipay/gratipay.com/">
<button style="selected larger">{{ _("Go") }}</button>
</form>
{% endblock %}
9 changes: 9 additions & 0 deletions www/fund-open-source/report.spt
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit a52f039

Please sign in to comment.