2016-08-24 01:01:17 +02:00
|
|
|
---
|
|
|
|
navigable: true
|
|
|
|
title: Events
|
|
|
|
---
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="content">
|
|
|
|
<h1>Upcoming events</h1>
|
|
|
|
</div>
|
|
|
|
|
2016-10-03 15:15:48 +02:00
|
|
|
<% upcoming_events.each do |event| %>
|
|
|
|
<!-- <hr class="divider"> -->
|
|
|
|
<% if (sub_events(event)).empty? %>
|
|
|
|
<%= render '/partials/_event_preview.*', event: event %>
|
|
|
|
<% else %>
|
|
|
|
<% sub_events(event).each do |sub_event| %>
|
|
|
|
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<h1>Past events</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% past_events.each do |event| %>
|
2016-08-27 01:23:22 +02:00
|
|
|
<!-- <hr class="divider"> -->
|
2016-08-27 03:50:40 +02:00
|
|
|
<% if (sub_events(event)).empty? %>
|
|
|
|
<%= render '/partials/_event_preview.*', event: event %>
|
|
|
|
<% else %>
|
|
|
|
<% sub_events(event).each do |sub_event| %>
|
2016-08-27 04:26:18 +02:00
|
|
|
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
2016-08-27 03:50:40 +02:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2016-08-24 01:01:17 +02:00
|
|
|
<% end %>
|
|
|
|
</div>
|