Skip to content

Commit 9013d23

Browse files
ericholscheragjohnson
authored andcommitted
Update donate page with timeless info (#2300)
* Update donate page with timeless info Currently we still have our old fundraiser on the donate page. We should make this evergreen, and allow folks to donate at any time. * Update progress page * Respect evergreen in progress * Add HTML that went missing and clean things a bit
1 parent 512654e commit 9013d23

File tree

2 files changed

+31
-74
lines changed

2 files changed

+31
-74
lines changed

readthedocs/donate/templates/donate/list.html

+2-20
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,7 @@
77

88
{% block content %}
99

10-
{% include 'donate/progress.html' with done=True %}
11-
12-
<a name="totals"></a>
13-
<h2>Fundraising Status</h2>
14-
15-
<div>
16-
<ul>
17-
<li><b>{{ donate_percent }}%</b> funded</li>
18-
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
19-
<li><b>${{ donate_avg }}</b> average contribution</li>
20-
<li><b>{{ donate_count }}</b> <a href="{% url 'donate' %}#supporters">Supporters</a></li>
21-
</ul>
22-
23-
<p>
24-
We will continue to keep donations open in case you missed your initial chance.
25-
That money will go to the next set of work after this 3 month trial.
26-
</p>
27-
28-
</div>
10+
{% include 'donate/progress.html' with evergreen=True %}
2911

3012
<a name="about"></a>
3113
<h2>About Read the Docs</h2>
@@ -37,7 +19,7 @@ <h2>About Read the Docs</h2>
3719
</p>
3820

3921
<ul class="donate-about">
40-
<li>Serve over <b>14 million pages</b> of documentation a month</li>
22+
<li>Serve over <b>20 million pages</b> of documentation a month</li>
4123
<li>Have 10 servers and serve over <b>2 TB</b> of documentation a month</li>
4224
<li>Host over <b>18,000 projects</b> and support <b>25,000 users</b></li>
4325
<li>Are supported by two dedicated engineers</li>
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
11
{% load i18n %}
22

3-
43
<div class="donate-stats">
5-
{% if done %}
6-
7-
<h2>Thanks for supporting us!</h2>
8-
<p>
9-
Read the Docs has reached our 3 month sustainability goal.
10-
From May until July we will be devoting those contributions to making Read the Docs better supported.
11-
Thanks to all the folks who have contributed.
12-
</p>
13-
14-
<p>
15-
Please read our <a href="https://blog.readthedocs.com/fundraising-wrapup/">blog post</a> outlining our plan going forward.
16-
All backers will receive information about how to follow along with the work we've been doing.
17-
We're excited to get things rolling,
18-
so stay tuned!
19-
</p>
20-
21-
{% if read_more %}
22-
<p>
23-
You can find more information on our <b><a href="{% url 'donate' %}#about">{% trans 'Sustainability Page' %}</a></b>
24-
</p>
25-
{% endif %}
26-
27-
{% else %}
28-
294
<h2>Help Support Read the Docs</h2>
5+
6+
<div class="donate-stats-lg">
307
<p>
318
Since its inception over four years ago, Read the Docs has grown
329
into a massive resource that developers rely on daily. To
@@ -48,46 +25,44 @@ <h2>Help Support Read the Docs</h2>
4825
<b><a href="{% url 'donate' %}#about">{% trans 'Read More' %}</a></b>
4926
</p>
5027
{% endif %}
51-
28+
</div>
5229

5330
<div class="donate-stats-sm">
5431
<ul>
55-
<h2>Status</h2>
56-
{% if not done %}
57-
<li>
58-
<div class="donate-progress">
59-
<div class="donate-progress-inner" style="width: {% if donate_percent > 100 %}100{% else %}{{ donate_percent }}{% endif %}%;">
32+
{% if not done and not evergreen %}
33+
<li>
34+
<div class="donate-progress">
35+
<div class="donate-progress-inner" style="width: {% if donate_percent > 100 %}100{% else %}{{ donate_percent }}{% endif %}%;">
36+
</div>
6037
</div>
61-
</div>
62-
</li>
38+
</li>
39+
{% endif %}
40+
{% if not evergreen %}
41+
<li><b>{{ donate_percent }}%</b> funded</li>
42+
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
43+
{% else %}
44+
<li><b>${{ donate_amount }}</b> contributed</li>
6345
{% endif %}
64-
<li><b>{{ donate_percent }}%</b> funded</li>
65-
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
6646
<li><b>${{ donate_avg }}</b> average contribution</li>
6747
<li><b>{{ donate_count }}</b> <a href="{% url 'donate' %}#supporters">Supporters</a></li>
6848
</ul>
6949

7050
{% if not read_more %}
71-
<form action="{% url 'donate_add' %}" method="get" class="donate-form">
72-
<select id="id_dollars" name="dollars">
73-
<option value="5">$5</option>
74-
<option value="10">$10</option>
75-
<option value="25">$25</option>
76-
<option value="50" selected="selected">1 Hour ($50)</option>
77-
<option value="100">2 Hours ($100)</option>
78-
<option value="200">4 Hours ($200)</option>
79-
<option value="400">1 Day ($400)</option>
80-
<option value="800">2 Days ($800)</option>
81-
<option value="2000">5 Days ($2000)</option>
82-
</select>
83-
<button>{% trans 'Donate Now' %}</button>
84-
</form>
85-
{% endif %}
86-
{% if not done %}
87-
<em>Companies that contribute $400 or more will get a <a href="http://docs.readthedocs.io/en/latest/support.html#named-support-contact">Named Support Contact</a> or <a href="http://docs.readthedocs.io/en/latest/sponsors.html#footer-logo-promotion">Footer Logo Promotion</a>. Both offers good for 3 month duration of the Sustainability project.</em>
51+
<form action="{% url 'donate_add' %}" method="get" class="donate-form">
52+
<select id="id_dollars" name="dollars">
53+
<option value="5">$5</option>
54+
<option value="10">$10</option>
55+
<option value="25">$25</option>
56+
<option value="50" selected="selected">1 Hour ($50)</option>
57+
<option value="100">2 Hours ($100)</option>
58+
<option value="200">4 Hours ($200)</option>
59+
<option value="400">1 Day ($400)</option>
60+
<option value="800">2 Days ($800)</option>
61+
<option value="2000">5 Days ($2000)</option>
62+
</select>
63+
<button>{% trans 'Donate Now' %}</button>
64+
</form>
8865
{% endif %}
8966
</div>
9067

91-
{% endif %}
92-
9368
</div>

0 commit comments

Comments
 (0)