%= render HeaderComponent.new(title: "Donations") %> <%= render MainSimpleComponent.new do %> <% if @donations.any? %>
| User | Amount BTC | in EUR | in USD | Public name | Date | |||
|---|---|---|---|---|---|---|---|---|
| <%= donation.user.address %> | <%= sats_to_btc donation.amount_sats %> | <% if donation.amount_eur.present? %><%= number_to_currency donation.amount_eur / 100, unit: "" %><% end %> | <% if donation.amount_usd.present? %><%= number_to_currency donation.amount_usd / 100, unit: "" %><% end %> | <%= donation.public_name %> | <%= donation.paid_at ? donation.paid_at.strftime("%Y-%m-%d") : "" %> | <%= link_to 'Show', admin_donation_path(donation), class: 'btn btn-sm btn-gray' %> | <%= link_to 'Edit', edit_admin_donation_path(donation), class: 'btn btn-sm btn-gray' %> | <%= link_to 'Destroy', admin_donation_path(donation), class: 'btn btn-sm btn-red', data: { turbo_method: :delete, turbo_confirm: 'Are you sure?' } %> |
No donations yet.
<% end %><%= link_to 'Record an out-of-system donation', new_admin_donation_path, class: 'btn-md btn-gray' %>
<% end %>