Donations

<% if @donations.any? %> <% @donations.each do |donation| %> <% end %>
User Amount BTC in EUR in USD Public name Date
<%= donation.user.cn %> <%= sats_to_btc donation.amount_sats %> BTC <%= number_to_currency donation.amount_eur / 100, unit: "" %> <%= number_to_currency donation.amount_usd / 100, unit: "" %> <%= donation.public_name %> <%= donation.paid_at ? donation.paid_at.strftime("%Y-%m-%d") : "" %> <%= link_to 'Show', admin_donation_path(donation) %> <%= link_to 'Edit', edit_admin_donation_path(donation) %> <%= link_to 'Destroy', admin_donation_path(donation), method: :delete, data: { confirm: 'Are you sure?' } %>
<% else %>

No donations yet.

<% end %>

<%= link_to 'Record an out-of-system donation', new_admin_donation_path %>