Add default message when no supporting members are found

This commit is contained in:
Robbe Van Herck 2020-07-06 16:14:29 +02:00
parent 1ef012f109
commit 76d12039fc

View file

@ -6,6 +6,9 @@ narrow_page: true
<h1 class='title is-1 has-text-centered'>Sponsorende leden</h1>
<div id='sponsoring-members' class="content">
<% if current_sponsoring_members.nil? %>
Nog geen sponsorende leden voor dit academiejaar. Interesse? Contacteer het bestuur.
<% else %>
<% current_sponsoring_members.each do |member| %>
<div id="<%= member[:nickname] %>" class="box sponsoring-member">
<article class="columns is-mobile">
@ -50,4 +53,5 @@ narrow_page: true
</article>
</div>
<% end %>
<% end %>
</div>