From c45beb877e90b23288b7c12b5a2e0abb5332b1e9 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Sun, 19 Mar 2023 15:24:56 +0000 Subject: [PATCH] Support forgotten members in contributions list --- app/views/contributions/index.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/contributions/index.html.erb b/app/views/contributions/index.html.erb index 5e6db90..073adff 100644 --- a/app/views/contributions/index.html.erb +++ b/app/views/contributions/index.html.erb @@ -13,7 +13,13 @@ <% @contributions.each do |contribution| %> <%= contribution.payment_on %> - <%= contribution.member.number %>. <%= contribution.member.display_name %> + + <% if contribution.member %> + <%= contribution.member.number %>. <%= contribution.member.display_name %> + <% else %> + --- + <% end %> + <%= contribution.eurocents %> <%= contribution.payment_method %>