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">
|
|
|
|
<% academic_years_items.each do |year, item| %>
|
|
|
|
<% 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">
|
2016-11-01 20:28:24 +01:00
|
|
|
<% posts_in_year(item[:academic_year]).each do |post| %>
|
2016-11-01 19:55:33 +01:00
|
|
|
<a href="<%= relative_path_to(post) %>">
|
2016-11-01 20:28:24 +01:00
|
|
|
<article class="box padbox">
|
2016-11-01 19:55:33 +01:00
|
|
|
<div class="columns">
|
2016-11-01 20:28:24 +01:00
|
|
|
<div class="column">
|
|
|
|
<p class="title is-3"><%= post[:title] %></p>
|
|
|
|
<p class="subtitle is-5">
|
|
|
|
<% if post[:author] %>
|
2016-11-01 21:56:55 +01:00
|
|
|
door <%= post[:author] %>
|
2016-11-01 20:28:24 +01:00
|
|
|
<% end %>
|
|
|
|
</p>
|
2016-11-01 19:55:33 +01:00
|
|
|
<div class="content">
|
2016-11-01 20:28:24 +01:00
|
|
|
<%= post[:description] %>
|
|
|
|
<br>
|
|
|
|
<small><%= post[:created_at] %></small>
|
2016-11-01 19:55:33 +01:00
|
|
|
</div>
|
2016-11-01 20:28:24 +01:00
|
|
|
</div>
|
|
|
|
<div class="column">
|
|
|
|
<div class="content">
|
|
|
|
<%= excerptize(post.reps[:text].compiled_content, length: 200).tr("\n", ' ')%>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-11-01 19:55:33 +01:00
|
|
|
</div>
|
2016-11-01 20:28:24 +01:00
|
|
|
</article>
|
2016-11-01 19:55:33 +01:00
|
|
|
</a>
|
2016-11-01 20:28:24 +01:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|