Add basic donation records #18

Merged
raucao merged 6 commits from feature/donation_records into master 2020-12-21 14:46:51 +00:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 4a65573934 - Show all commits

View File

@@ -5,7 +5,7 @@
<thead>
<tr>
<th>User</th>
<th>Amount BTC (sats)</th>
<th>Amount BTC</th>
<th>in EUR</th>
<th>in USD</th>
<th>Public name</th>
@@ -18,9 +18,9 @@
<% @donations.each do |donation| %>
<tr>
<td><%= donation.user.cn %></td>
<td><%= donation.amount_sats %></td>
<td><%= donation.amount_eur %></td>
<td><%= donation.amount_usd %></td>
<td><%= sats_to_btc donation.amount_sats %> BTC</td>
<td><%= number_to_currency donation.amount_eur / 100, unit: "" %></td>
<td><%= number_to_currency donation.amount_usd / 100, unit: "" %></td>
<td><%= donation.public_name %></td>
<td><%= donation.paid_at ? donation.paid_at.strftime("%Y-%m-%d") : "" %></td>
<td><%= link_to 'Show', admin_donation_path(donation) %></td>

View File

@@ -18,7 +18,7 @@
<%= sats_to_btc donation.amount_sats %> BTC
</p>
<p class="amounts-fiat">
(~ <%= number_to_currency donation.amount_eur / 100 %> EUR)
(~ <%= number_to_currency donation.amount_eur / 100, unit: "" %> EUR)
</p>
<p class="public-name">
<% if donation.public_name.present? %>