Moved the paypal form to an include

This commit is contained in:
Rob Prouse 2015-12-16 08:15:21 -05:00
Родитель a159ec2c63
Коммит 83d22a0e56
3 изменённых файлов: 16 добавлений и 28 удалений

12
_includes/paypal.html Normal file
Просмотреть файл

@ -0,0 +1,12 @@
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="charlie@nunit.com">
<input type="hidden" name="item_name" value="Donation in support of the NUnit project">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<button type="submit" name="submit" class="btn btn-success">Donate <i class="fa fa-credit-card"></i></button>
</form>

Просмотреть файл

@ -9,18 +9,7 @@ to develop the software itself.
You can make a donation easily through Paypal, by clicking on the 'Donate' button.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="charlie@nunit.com">
<input type="hidden" name="item_name" value="Donation in support of the NUnit project">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<button type="submit" name="submit" class="btn btn-success">Donate <i class="fa fa-credit-card"></i></button>
</form>
{% include paypal.html %}
## Recent Donations

Просмотреть файл

@ -22,7 +22,7 @@ layout: default
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2>What Is NUnit?</h2>
<h2><i class="fa fa-question-circle"></i> What Is NUnit?</h2>
<p>NUnit is a unit-testing framework for all .Net languages. Initially ported from <a href="http://www.junit.org/">JUnit</a>, the current
production release, version 3.0, has been completely rewritten with many new features and support for a wide range of
@ -33,7 +33,7 @@ layout: default
<div class="row">
<div class="col-sm-4">
<h2><i class="fa fa-question-circle"></i> License</h2>
<h2><i class="fa fa-check-square-o"></i> License</h2>
<p>NUnit is Open Source software and NUnit 3.0 is released under the <a href="/nuget/nunit3-license.txt">MIT license</a>. Earlier releases
used the <a href="/nuget/license.html">NUnit license</a>.</p>
@ -60,20 +60,7 @@ layout: default
<p>Financial contributions are one way you can help to ensure that NUnit continues to develop and remains free
and open software. For more information or to view a list of donors, see our <a href="/donations/">Donations</a> page.</p>
<p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="charlie@nunit.com">
<input type="hidden" name="item_name" value="Donation in support of the NUnit project">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-DonationsBF">
<button type="submit" name="submit" class="btn btn-success">Donate <i class="fa fa-credit-card"></i></button>
</form>
</p>
<p> {% include paypal.html %} </p>
</div>
</div>