Add default message when no supporting members are found
This commit is contained in:
parent
1ef012f109
commit
76d12039fc
1 changed files with 45 additions and 41 deletions
|
@ -6,48 +6,52 @@ narrow_page: true
|
||||||
<h1 class='title is-1 has-text-centered'>Sponsorende leden</h1>
|
<h1 class='title is-1 has-text-centered'>Sponsorende leden</h1>
|
||||||
|
|
||||||
<div id='sponsoring-members' class="content">
|
<div id='sponsoring-members' class="content">
|
||||||
<% current_sponsoring_members.each do |member| %>
|
<% if current_sponsoring_members.nil? %>
|
||||||
<div id="<%= member[:nickname] %>" class="box sponsoring-member">
|
Nog geen sponsorende leden voor dit academiejaar. Interesse? Contacteer het bestuur.
|
||||||
<article class="columns is-mobile">
|
<% else %>
|
||||||
<div class="column is-gapless is-narrow logo-wrapper">
|
<% current_sponsoring_members.each do |member| %>
|
||||||
<% if member[:photo] %>
|
<div id="<%= member[:nickname] %>" class="box sponsoring-member">
|
||||||
<img src="<%= member[:photo] %>" alt="<%= member[:name] %>">
|
<article class="columns is-mobile">
|
||||||
<% else %>
|
<div class="column is-gapless is-narrow logo-wrapper">
|
||||||
<div class="logo-initial has-text-centered">
|
<% if member[:photo] %>
|
||||||
<%= member[:name].chars.first %>
|
<img src="<%= member[:photo] %>" alt="<%= member[:name] %>">
|
||||||
</div>
|
<% else %>
|
||||||
<% end %>
|
<div class="logo-initial has-text-centered">
|
||||||
<div class="name"><%= member[:name] %></div>
|
<%= member[:name].chars.first %>
|
||||||
<div class="username">(<%= member[:nickname] %>)</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="column">
|
|
||||||
<div>
|
|
||||||
<blockquote>
|
|
||||||
<%= to_HTML(member[:quote]) %>
|
|
||||||
</blockquote>
|
|
||||||
<p class="description">
|
|
||||||
<%= to_HTML(member[:description]) %>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="links">
|
|
||||||
<% member[:links].each do |link| %>
|
|
||||||
<% if link[:icon] %>
|
|
||||||
<a class="social-icon" href="<%= link[:url] %>" target="_blank">
|
|
||||||
<span class="icon">
|
|
||||||
<%= fa link[:icon], {:size => "2x"} %>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<% else %>
|
|
||||||
<a class="social-icon" href="<%= link[:url] %>" target="_blank">
|
|
||||||
<span class="icon">
|
|
||||||
<%= fa :globe, {:size => "2x"} %>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<div class="name"><%= member[:name] %></div>
|
||||||
|
<div class="username">(<%= member[:nickname] %>)</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="column">
|
||||||
</article>
|
<div>
|
||||||
</div>
|
<blockquote>
|
||||||
|
<%= to_HTML(member[:quote]) %>
|
||||||
|
</blockquote>
|
||||||
|
<p class="description">
|
||||||
|
<%= to_HTML(member[:description]) %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="links">
|
||||||
|
<% member[:links].each do |link| %>
|
||||||
|
<% if link[:icon] %>
|
||||||
|
<a class="social-icon" href="<%= link[:url] %>" target="_blank">
|
||||||
|
<span class="icon">
|
||||||
|
<%= fa link[:icon], {:size => "2x"} %>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<% else %>
|
||||||
|
<a class="social-icon" href="<%= link[:url] %>" target="_blank">
|
||||||
|
<span class="icon">
|
||||||
|
<%= fa :globe, {:size => "2x"} %>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue