22adb4d5fd
The primary license of the project is changing to: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later with some specific files to be licensed under the one of two licenses: CC0-1.0 LGPL-3.0-or-later This commit is one of the many steps to relicense the entire codebase. Documentation granting permission for this relicensing (from all past contributors who hold copyrights) is on file with Software Freedom Conservancy, Inc.
33 lines
927 B
Text
33 lines
927 B
Text
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
|
<!-- partial: profiles/donation_history -->
|
|
|
|
<header class='group u-padding--10 u-border--bottom'>
|
|
<strong class='u-fontSize--18'>One-Time Donations</strong>
|
|
<span class='highlight u-floatR'><%= print_currency(@donations.pluck(:amount).sum) %> total</span>
|
|
</header>
|
|
|
|
<% if @donations.empty? %>
|
|
<p class='noResults'>
|
|
None Yet
|
|
</p>
|
|
<% else %>
|
|
|
|
<table class='table--plaid'>
|
|
<tbody>
|
|
<% @donations.order('created_at DESC').each do |donation| %>
|
|
<tr>
|
|
<td>
|
|
$<%= print_currency donation.amount, false %>
|
|
</td>
|
|
<td>
|
|
<%= link_to(donation.nonprofit.name, donation.nonprofit.url) %>
|
|
</td>
|
|
<td> <%= simple_date(donation.created_at) %></td>
|
|
<td> <%= GetData.chain(donation.card, :name) %> </td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table> <!-- .donation-table -->
|
|
|
|
<% end %>
|
|
|