Patchwork [3,of,3,website] donate: new page to route donations to conservancy

login
register
mail settings
Submitter Augie Fackler
Date Dec. 23, 2016, 4:08 p.m.
Message ID <f48d84ce78aed4a3d063.1482509292@imladris.local>
Download mbox | patch
Permalink /patch/18015/
State Accepted
Headers show

Comments

Augie Fackler - Dec. 23, 2016, 4:08 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1482509162 18000
#      Fri Dec 23 11:06:02 2016 -0500
# Node ID f48d84ce78aed4a3d063b08da0f7178028192501
# Parent  4d7de32b44efc1a385466e9bbafe4ac5a2177c34
donate: new page to route donations to conservancy

This isn't linked to yet because I want to confirm with conservancy
that this is still the right way to link to them for PayPal donations,
because it's surprising to me that the linked page doesn't mention a
project name or have a memo field.
David Soria Parra - Dec. 24, 2016, 12:03 a.m.
On Fri, Dec 23, 2016 at 11:08:12AM -0500, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf@durin42.com>
> # Date 1482509162 18000
> #      Fri Dec 23 11:06:02 2016 -0500
> # Node ID f48d84ce78aed4a3d063b08da0f7178028192501
> # Parent  4d7de32b44efc1a385466e9bbafe4ac5a2177c34
> donate: new page to route donations to conservancy

if it matters, series LGTM.
Sean Farley - Dec. 29, 2016, 12:47 a.m.
David Soria Parra <dsp@experimentalworks.net> writes:

> On Fri, Dec 23, 2016 at 11:08:12AM -0500, Augie Fackler wrote:
>> # HG changeset patch
>> # User Augie Fackler <raf@durin42.com>
>> # Date 1482509162 18000
>> #      Fri Dec 23 11:06:02 2016 -0500
>> # Node ID f48d84ce78aed4a3d063b08da0f7178028192501
>> # Parent  4d7de32b44efc1a385466e9bbafe4ac5a2177c34
>> donate: new page to route donations to conservancy
>
> if it matters, series LGTM.

Cool, I've queued all of these.

Patch

diff --git a/templates/donate/index.html b/templates/donate/index.html
new file mode 100644
--- /dev/null
+++ b/templates/donate/index.html
@@ -0,0 +1,62 @@ 
+{% extends "base.html" %}
+
+{% block main %}
+
+<!-- TODO(durin42): move this js someplace better -->
+<script type="text/javascript">
+function validateAmount(amount){
+        if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){
+                return true;
+        }else{
+                alert('You must enter a valid donation.');
+                amount.focus();
+                return false;
+        }
+}
+</script>
+
+<h1>Project Donations</h1>
+
+<p>Mercurial is a volunteer-run free-software project that is a
+  member of
+  the <a href='http://www.sfconservancy.org/'>Software
+  Freedom Conservancy</a>, a US tax-exempt 501(c)(3) organization.
+  Donations are tax-deductable.
+
+<h2>General donations</h2>
+<p>Donations to the general fund will be used to sponsor project
+activities such as sprints and conference attendance:</p>
+
+<table border=1>
+<td><b>PayPal</b></td>
+<td><b>Check</b></td>
+<td><b>Wire Transfer</b></td></tr>
+<tr>
+<td>
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<input type="hidden" name="cmd" value="_s-xclick">
+<input type="hidden" name="hosted_button_id" value="1578269">
+<input type="image"
+       src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"
+       border="0" name="submit" alt="">
+<img alt="" border="0"
+       src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
+       height="1">
+</form>
+</td>
+<td>
+<b>Software Freedom Conservancy, Inc.</b><br>
+137 Montague Street STE 380<br>
+Brooklyn, NY  11201-3548<br>
+<i>memo: Directed donation: Mercurial</i>
+</p>
+</td>
+<td>
+Please write
+  to <a href='mailto:accounting@sfconservancy.org'>accounting@sfconservancy.org</a>
+  for details.</p>
+</td>
+</tr>
+</table>
+
+{% endblock %}