--- navigable: true title: Events order: 20 ---

Upcoming events

<% upcoming_events.each_slice(2) do |slice| %>
<% slice.each do |event| %> <% if (sub_events(event)).empty? %>
<%= render '/partials/_tile.*', article: event, small_text: event[:time].strftime('%A %d %B %Y %H:%M'), htmlclass:"highlighted" %>
<% else %> <% sub_events(event).each do |sub_event| %> <%= render '/partials/_event_preview.*', event: sub_event, main_event: event %> <% end %> <% end %> <% end %>
<% end %>

Past events

<% past_events.each_slice(2) do |slice| %>
<% slice.each do |event| %> <% if (sub_events(event)).empty? %>
<%= render '/partials/_tile.*', article: event, small_text: event[:time].strftime('%A %d %B %Y %H:%M'), htmlclass:"highlighted" %>
<% else %> <% sub_events(event).each do |sub_event| %> <%= render '/partials/_event_preview.*', event: sub_event, main_event: event %> <% end %> <% end %> <% end %>
<%end%>