% # encoding: utf-8 %> <% data = action_data @nkuht_donates = data["nkuht_donates"] @total_pages = data["total_pages"] %>
捐款日期 | 捐款人 | 捐款用途 | 捐款金額 |
---|---|---|---|
<%= (nkuht_donate.donation_serial_date.to_date.strftime("%Y").to_i - 1911 ).to_s + nkuht_donate.donation_serial_date.to_date.strftime("/%m/%d") %> | <%=nkuht_donate.name%> | <%= if !nkuht_donate.nkuht_donate_use.blank? if nkuht_donate.nkuht_donate_use.title == '其他' or nkuht_donate.nkuht_donate_use.title == 'Other' "#{nkuht_donate.nkuht_donate_use.title}(#{nkuht_donate.donation_use_other})" else nkuht_donate.nkuht_donate_use.title end else nil end %> | <%= number_to_currency(nkuht_donate.donation_amount, unit: '', precision: 0) %>元 | <% end %>