<% content_for :head do %> <% end %> <% content_for :scripts do %> <%= asset :js, :gamification %> <% end %>
<%= if studytime? then render '/tiles/blokmap.*'end %>
<%= render '/partials/_events_tile.*', event: upcoming_events[0] || all_events[-1] %>
<%= render '/partials/_tile.*', article: sorted_articles.first, small_text: "Latest blogpost", htmlclass:"highlighted"%>
<% all_events.reject { |x| x == upcoming_events[0] }.reverse[0..2].each do |event| %>
<%= render '/partials/_events_tile.*', event: event %>
<%end%>
<% sorted_articles[1..3].each do |post| %>
<%= render '/partials/_tile.*', article: post, small_text: "Blogpost"%>
<%end%>