2016-08-24 01:01:17 +02:00
|
|
|
---
|
|
|
|
navigable: true
|
|
|
|
title: Events
|
|
|
|
---
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="content">
|
|
|
|
<h1>Upcoming events</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% all_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>
|