<% content_for :head do %> <% end %>
<%= if studytime? then render '/tiles/blokmap.*'end %>
<%= render '/partials/_tile.*', article: upcoming_events[0] || all_events[-1], small_text: if upcoming_events[0] then "Upcoming event" else "Past event" end%>
<%= render '/partials/_tile.*', article: sorted_articles.first, small_text: "Latest blogpost", htmlclass:"highlighted"%>
<% all_events.reverse[1..3].each do |event| %>
<%= render '/partials/_tile.*', article: event, small_text: upcoming_events.include?(event) ? "Upcoming event" : "Past event", htmlclass:"highlighted" %>
<%end%>
<% sorted_articles[1..3].each do |post| %>
<%= render '/partials/_tile.*', article: post, small_text: "Blogpost"%>
<%end%>
<%= asset :js, :gamification %> <%= asset :js, :quote %>