Skip to content

Update donate page with timeless info #2300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions readthedocs/donate/templates/donate/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,7 @@

{% block content %}

{% include 'donate/progress.html' with done=True %}

<a name="totals"></a>
<h2>Fundraising Status</h2>

<div>
<ul>
<li><b>{{ donate_percent }}%</b> funded</li>
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
<li><b>${{ donate_avg }}</b> average contribution</li>
<li><b>{{ donate_count }}</b> <a href="{% url 'donate' %}#supporters">Supporters</a></li>
</ul>

<p>
We will continue to keep donations open in case you missed your initial chance.
That money will go to the next set of work after this 3 month trial.
</p>

</div>
{% include 'donate/progress.html' with evergreen=True %}

<a name="about"></a>
<h2>About Read the Docs</h2>
Expand All @@ -37,7 +19,7 @@ <h2>About Read the Docs</h2>
</p>

<ul class="donate-about">
<li>Serve over <b>14 million pages</b> of documentation a month</li>
<li>Serve over <b>20 million pages</b> of documentation a month</li>
<li>Have 10 servers and serve over <b>2 TB</b> of documentation a month</li>
<li>Host over <b>18,000 projects</b> and support <b>25,000 users</b></li>
<li>Are supported by two dedicated engineers</li>
Expand Down
83 changes: 29 additions & 54 deletions readthedocs/donate/templates/donate/progress.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@
{% load i18n %}


<div class="donate-stats">
{% if done %}

<h2>Thanks for supporting us!</h2>
<p>
Read the Docs has reached our 3 month sustainability goal.
From May until July we will be devoting those contributions to making Read the Docs better supported.
Thanks to all the folks who have contributed.
</p>

<p>
Please read our <a href="https://blog.readthedocs.com/fundraising-wrapup/">blog post</a> outlining our plan going forward.
All backers will receive information about how to follow along with the work we've been doing.
We're excited to get things rolling,
so stay tuned!
</p>

{% if read_more %}
<p>
You can find more information on our <b><a href="{% url 'donate' %}#about">{% trans 'Sustainability Page' %}</a></b>
</p>
{% endif %}

{% else %}

<h2>Help Support Read the Docs</h2>

<div class="donate-stats-lg">
<p>
Since its inception over four years ago, Read the Docs has grown
into a massive resource that developers rely on daily. To
Expand All @@ -48,46 +25,44 @@ <h2>Help Support Read the Docs</h2>
<b><a href="{% url 'donate' %}#about">{% trans 'Read More' %}</a></b>
</p>
{% endif %}

</div>

<div class="donate-stats-sm">
<ul>
<h2>Status</h2>
{% if not done %}
<li>
<div class="donate-progress">
<div class="donate-progress-inner" style="width: {% if donate_percent > 100 %}100{% else %}{{ donate_percent }}{% endif %}%;">
{% if not done and not evergreen %}
<li>
<div class="donate-progress">
<div class="donate-progress-inner" style="width: {% if donate_percent > 100 %}100{% else %}{{ donate_percent }}{% endif %}%;">
</div>
</div>
</div>
</li>
</li>
{% endif %}
{% if not evergreen %}
<li><b>{{ donate_percent }}%</b> funded</li>
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
{% else %}
<li><b>${{ donate_amount }}</b> contributed</li>
{% endif %}
<li><b>{{ donate_percent }}%</b> funded</li>
<li><b>${{ donate_amount }}</b> contributed to $24,000 goal</li>
<li><b>${{ donate_avg }}</b> average contribution</li>
<li><b>{{ donate_count }}</b> <a href="{% url 'donate' %}#supporters">Supporters</a></li>
</ul>

{% if not read_more %}
<form action="{% url 'donate_add' %}" method="get" class="donate-form">
<select id="id_dollars" name="dollars">
<option value="5">$5</option>
<option value="10">$10</option>
<option value="25">$25</option>
<option value="50" selected="selected">1 Hour ($50)</option>
<option value="100">2 Hours ($100)</option>
<option value="200">4 Hours ($200)</option>
<option value="400">1 Day ($400)</option>
<option value="800">2 Days ($800)</option>
<option value="2000">5 Days ($2000)</option>
</select>
<button>{% trans 'Donate Now' %}</button>
</form>
{% endif %}
{% if not done %}
<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>
<form action="{% url 'donate_add' %}" method="get" class="donate-form">
<select id="id_dollars" name="dollars">
<option value="5">$5</option>
<option value="10">$10</option>
<option value="25">$25</option>
<option value="50" selected="selected">1 Hour ($50)</option>
<option value="100">2 Hours ($100)</option>
<option value="200">4 Hours ($200)</option>
<option value="400">1 Day ($400)</option>
<option value="800">2 Days ($800)</option>
<option value="2000">5 Days ($2000)</option>
</select>
<button>{% trans 'Donate Now' %}</button>
</form>
{% endif %}
</div>

{% endif %}

</div>