2016-11-01 19:55:33 +01:00
|
|
|
<div class="columns" >
|
2016-11-01 20:28:24 +01:00
|
|
|
<div class="column is-2 is-narrow">
|
|
|
|
<aside class="menu">
|
|
|
|
<p class="menu-label">
|
2016-12-12 14:40:42 +01:00
|
|
|
Academiejaar
|
2016-11-01 20:28:24 +01:00
|
|
|
</p>
|
|
|
|
<ul class="menu-list">
|
2017-06-07 10:23:02 +02:00
|
|
|
<% academic_years_blog_items.each do |year, item| %>
|
2016-11-01 20:28:24 +01:00
|
|
|
<% if @item_rep && @item_rep.path == item.path %>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="is-active">
|
|
|
|
<%= pretty_year(year) %>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<%= link_to pretty_year(year), item %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
2016-11-01 19:55:33 +01:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
2017-04-20 23:06:45 +02:00
|
|
|
<div class="columns is-multiline">
|
|
|
|
<div class="column">
|
|
|
|
<% posts_in_year(item[:academic_year]).each_with_index.select {|e, i| i.even?}.map(&:first).each do |post| %>
|
|
|
|
<%= render '/partials/_blog_preview.*', post: post %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<% posts_in_year(item[:academic_year]).each_with_index.reject {|e, i| i.even?}.map(&:first).each do |post| %>
|
|
|
|
<%= render '/partials/_blog_preview.*', post: post %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2019-08-17 15:09:27 +02:00
|
|
|
|
2017-04-20 23:06:45 +02:00
|
|
|
</div>
|
2019-08-17 15:09:27 +02:00
|
|
|
<% if posts_in_year(@item[:academic_year]).empty? %>
|
|
|
|
<div class="content has-text-centered">
|
|
|
|
<h1>Sorry.</h1>
|
|
|
|
<h2>No blog posts yet this year.</h2>
|
|
|
|
<h4 class="has-text-grey"><i>Soon TM.<i></h4>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2016-11-01 20:28:24 +01:00
|
|
|
</div>
|
|
|
|
</div>
|