<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
One-Time Donations <%= print_currency(@donations.pluck(:amount).sum) %> total
<% if @donations.empty? %>

None Yet

<% else %> <% @donations.order('created_at DESC').each do |donation| %> <% end %>
$<%= print_currency donation.amount, false %> <%= link_to(donation.nonprofit.name, donation.nonprofit.url) %> <%= simple_date(donation.created_at) %> <%= GetData.chain(donation.card, :name) %>
<% end %>