<%= donation.user.cn %> |
- <%= donation.amount_sats %> |
- <%= donation.amount_eur %> |
- <%= donation.amount_usd %> |
+ <%= 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) %> |
diff --git a/app/views/donations/index.html.erb b/app/views/donations/index.html.erb
index 0dadba5..7c504de 100644
--- a/app/views/donations/index.html.erb
+++ b/app/views/donations/index.html.erb
@@ -18,7 +18,7 @@
<%= sats_to_btc donation.amount_sats %> BTC
- (~ <%= number_to_currency donation.amount_eur / 100 %> EUR)
+ (~ <%= number_to_currency donation.amount_eur / 100, unit: "" %> EUR)
<% if donation.public_name.present? %>