Add board mails to contact page

This commit is contained in:
Wout Schellaert 2019-05-27 13:11:23 +02:00
parent a8f7cbb1fd
commit cd4e0a769b
3 changed files with 129 additions and 114 deletions

View file

@ -34,37 +34,6 @@ narrow_page: true
Mail us all at: <a href='mailto:bestuur@zeus.ugent.be'>bestuur@zeus.ugent.be</a>
</blockquote>
<table class="table board-table">
<thead>
<tr>
<th>Function</th>
<th>Name</th>
<th>E-mail</th>
<th></th>
</tr>
</thead>
<tbody>
<% current_bestuur.each do |lid| %>
<tr>
<td>
<%= lid[:rol] %>
</td>
<td>
<%= lid[:naam] %>
</td>
<td>
<%= lid[:mail] %>
</td>
<td>
<% if lid[:mail] %>
<a href="mailto:<%= lid[:mail] %>">
<%= fa :envelope %>
</a>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= render '/partials/_current_bestuur.*' %>
</div>

View file

@ -10,7 +10,7 @@ contact_links:
description: Facebook
action: Like us
- icon: envelope
link: ../about#board
link: ../contact#board
description: Email
action: Mail us
- icon: twitter
@ -41,6 +41,8 @@ contact_links:
<script src="https://unpkg.com/leaflet@1.3.4/dist/leaflet.js"></script>
<% end %>
<div class="content">
<h1 class='title is-1 has-text-centered'>Contact us</h1>
<h2 class='subtitle is-4 has-text-centered has-text-weight-light'>bleep bloop</h1>
@ -64,7 +66,18 @@ contact_links:
<% end %>
</ul>
<div id="board">
<h2>The board (<%= pretty_year @config[:academic_year] %>)</h2>
<blockquote>
Mail us all at: <a href='mailto:bestuur@zeus.ugent.be'>bestuur@zeus.ugent.be</a>
</blockquote>
<%= render '/partials/_current_bestuur.*' %>
</div>
<!-- Extra information tiles -->
<h2>Varia</h2>
<div id='contact-info' class='tile is-ancestor is-vertical'>
<div class='tile is-parent'>
<div class='tile is-parent is-vertical'>
@ -136,3 +149,4 @@ contact_links:
<div class="map-wrapper box">
<%= render '/partials/_map.erb', location: "Zeus WPI" %>
</div>
</div>

View file

@ -0,0 +1,32 @@
<table class="table board-table">
<thead>
<tr>
<th>Function</th>
<th>Name</th>
<th>E-mail</th>
<th></th>
</tr>
</thead>
<tbody>
<% current_bestuur.each do |lid| %>
<tr>
<td>
<%= lid[:rol] %>
</td>
<td>
<%= lid[:naam] %>
</td>
<td>
<%= lid[:mail] %>
</td>
<td>
<% if lid[:mail] %>
<a href="mailto:<%= lid[:mail] %>">
<%= fa :envelope %>
</a>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>