zeus.ugent.be/layouts/archive_page.erb

39 lines
1,013 B
Text
Raw Normal View History

2016-11-01 13:28:23 +01:00
<div class="columns is-flex-mobile" >
2016-09-22 21:13:46 +02:00
<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">
2016-10-04 22:04:34 +02:00
<h2><%= post[:title] %> <small> <%= post[:created_at] %></small></h2>
<%= post[:description] %>
2016-09-22 21:13:46 +02:00
</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-11-01 13:28:23 +01:00
<aside class="column is-narrow menu">
<p class="menu-label">
Academic Year
</p>
<ul class="menu-list">
2016-09-22 21:13:46 +02:00
<% 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 %>
2016-09-22 21:13:46 +02:00
<% end %>
</ul>
</aside>
2016-09-22 21:13:46 +02:00
</div>