🚧 Donate view

* Added donate TemplateView and pulled in copy from existing site
* Pulled paypal donate forms from existing site
* Added license.txt file to static which is linked to from the copy
* Added links to the donate view

Issue: #34
This commit is contained in:
Greg Newman
2022-11-30 10:14:04 -05:00
parent b9c8513f6e
commit d9424f104d
6 changed files with 159 additions and 2326 deletions

View File

@@ -44,6 +44,11 @@ urlpatterns = [
path("500", InternalServerErrorView.as_view(), name="internal_server_error"), path("500", InternalServerErrorView.as_view(), name="internal_server_error"),
path("health/", include("health_check.urls")), path("health/", include("health_check.urls")),
path("forum/", include(machina_urls)), path("forum/", include(machina_urls)),
path(
"donate/",
TemplateView.as_view(template_name="donate/donate.html"),
name="donate",
),
path( path(
"libraries-by-letter/<str:letter>/", "libraries-by-letter/<str:letter>/",
LibraryByLetter.as_view(), LibraryByLetter.as_view(),

File diff suppressed because one or more lines are too long

23
static/license.txt Normal file
View File

@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,13 @@
<div class="my-11">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="width: 250px; margin-left:auto; margin-right: auto;">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="B8N63QM4ZDN74">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal The safer, easier way to pay online!" style="display:block; margin-left:auto; margin-right:auto;">
<p>
<button type="submit" style="width:250px; height:64px; white-space:normal;">
Donate once-off, or a recurring donation with Paypal or Credit/Debit card
</button>
</p>
</form>
</div>

View File

@@ -0,0 +1,115 @@
{% extends "base.html" %}
{% load static %}
{% block content %}
<div class="py-0 md:py-6 mb-3 px-3 md:px-0">
<div class="md:w-full py-16">
<h1 class="text-4xl">Donate to the Boost C++ Libraries</h1>
<p>
According to <a class="text-orange" href="https://www.openhub.net/p/boost/estimated_cost">OpenHub's
Boost page</a>, as of August 2014 there are 14.2 million lines
of code in Boost. Given the high quality of coding needed to
pass Boost's community review process, and the extensive unit
and functional testing required, a cost of US$20/line is not
unreasonable. By that metric, the Boost C++ Libraries would
cost US$284 million to rewrite from scratch in a commercial
organization.
</p>
<p>
If you want more of the same, please donate generously. We
will use donations to fund Boost infrastructure, help finance
<a class="text-orange" href="http://cppnow.org/">the annual C++ Now conference</a>,
and help fund students to work on Boost code without having to
worry as much about finding the time or money to do so. You
should be aware we may also use donations for any other purpose
the Boost steering committee feels appropriate.
</p>
{% include "donate/_donate-button.html" %}
<h3>Why ask for donations for the first time in fifteen years?</h3>
<p>
Boost was not generated, for the most part, by any
commercial organization. It is available in the public interest
as one of the purest forms of open source: its license,
<a class="text-orange" href="{% static 'license.txt' %}">the Boost
Software License</a>, is highly permissive and allows
unrestricted commercial use. Most of the code was written,
documented, and tested in the spare and family time of some of
the very best C++ engineers in the world, many of whom are also
involved in the ISO C++ standardization process. Many of the
additions to the C++ 11 standard library started life in the
Boost libraries, and so will many of the additions and changes
to the next C++ standard library.
</p>
<p>
Yet, for its first fifteen years, Boost has never asked for
donations of money from its users. So why begin now?
</p>
<p>
As Boost grows, more time and resources are being spent on
dealing with the size and complexity of Boost, especially as
libraries are transitioned to make full use of the new language
features in C++ 11/14. If you wish to support those efforts to
bring more Boost libraries into first tier support for the
latest generation of C++, please donate generously.
</p>
{% include "donate/_donate-button.html" %}
<h3>Why you should donate with a recurring monthly donation</h3>
<p>
Boost has participated in <a class="text-orange" href="https://en.wikipedia.org/wiki/Google_Summer_of_Code">Google's
Summer of Code</a> since 2007. This is an annual student open-source programming stipend program lasting three months during
which experienced Boost developers mentor students who work on
improving Boost libraries, usually in all the boring, thankless
stuff none of us like to do. The problem with the three month
duration is that the student is only just getting familiar
enough with the Boost libraries to ramp up their
productivity and rate of output when the program ends. This
leads to these outcomes:
</p>
<ul>
<li>We don't reap the full rewards of what we should given
the substantial investment in mentoring our developers invest
into students each year.</li>
<li>The student is just getting into the Boost libraries when
they need to return to concentrating on their studies, and
often back to the part time work needed to finance the high
expense of university study nowadays.</li>
<li>Students, when they graduate, get pulled into the
development of proprietary rather than open-source software,
or they end up gravitating to one of the many open source
projects much better at running a student-to-developer
pipeline than Boost historically has been.</li>
</ul>
<p>
Whatever the case, Boost is not benefiting as it should from
enthusiastic students with great ideas about where C++ should
go next, and we hope that <em>you</em> can help us change
that.
</p>
<p>
So, if you or your company or organization has benefited
from the Boost C++ Libraries, or you would like to assist
promising young C++ engineers develop their talents to the
full, please strongly consider making a regular monthly
donation to Boost! Please donate generously. Thank you in
advance!
</p>
</div>
</div>
{% endblock %}

View File

@@ -49,7 +49,7 @@
<a href="{% url "news" %}" class="font-medium text-gray-500 hover:text-gray-900">News</a> <a href="{% url "news" %}" class="font-medium text-gray-500 hover:text-gray-900">News</a>
<a href="#" class="font-medium text-gray-500 hover:text-gray-900">Donate</a> <a href="{% url 'donate' %}" class="font-medium text-gray-500 hover:text-gray-900">Donate</a>
</div> </div>
</div> </div>
</nav> </nav>
@@ -107,7 +107,7 @@
<a href="{% url "news" %}" class="block px-3 py-2 text-gray-500 hover:text-gray-900">News</a> <a href="{% url "news" %}" class="block px-3 py-2 text-gray-500 hover:text-gray-900">News</a>
<a href="#" class="block px-3 py-2 text-gray-500 hover:text-gray-900">Donate</a> <a href="{% url 'donate' %}" class="block px-3 py-2 text-gray-500 hover:text-gray-900">Donate</a>
</div> </div>
<div class="px-2 pt-2 pb-3 absolute bottom-10 left-0 text-sm"> <div class="px-2 pt-2 pb-3 absolute bottom-10 left-0 text-sm">
<a href="{% url 'boost-about' %}" class="block px-3 py-2 text-thin text-gray-700 hover:text-gray-900 hover:bg-gray-50">About</a> <a href="{% url 'boost-about' %}" class="block px-3 py-2 text-thin text-gray-700 hover:text-gray-900 hover:bg-gray-50">About</a>