zeus.ugent.be/layouts/archive_page.erb

28 lines
759 B
Text
Raw Normal View History

2016-09-22 21:13:46 +02:00
<div class="columns" >
<div class="column">
<% posts_in_year(item[:academic_year]).each do |post| %>
<a href="<%= relative_path_to(post) %>" >
<div class="box padbox">
<article class="media">
<div class="media-content">
<div class="content">
<h2><%= post[:title] %></h2>
<%= excerptize(post.reps[:text].compiled_content, length: 200) %>
</div>
</div>
</article>
2016-08-02 18:31:40 +02:00
</div>
2016-09-22 21:13:46 +02:00
</a>
<% end %>
2016-07-23 22:06:06 +02:00
</div>
2016-09-22 21:13:46 +02:00
<div class="column is-narrow">
<ul class = "archive_list">
<% academic_years_items.each do |year, item| %>
<li class="bolder">
<%= link_to pretty_year(year), item %>
</li>
<% end %>
</ul>
</div>
</div>