2016-08-24 01:01:17 +02:00
|
|
|
---
|
|
|
|
navigable: true
|
|
|
|
title: Events
|
2016-10-03 22:33:52 +02:00
|
|
|
order: 20
|
2016-08-24 01:01:17 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="content">
|
|
|
|
<h1>Upcoming events</h1>
|
|
|
|
</div>
|
2017-02-09 15:04:12 +01:00
|
|
|
<div class="container">
|
|
|
|
<% upcoming_events.each_slice(2) do |slice| %>
|
2016-10-03 15:15:48 +02:00
|
|
|
<!-- <hr class="divider"> -->
|
2017-02-09 15:04:12 +01:00
|
|
|
<div class="columns">
|
|
|
|
<% slice.each do |event| %>
|
|
|
|
<% if (sub_events(event)).empty? %>
|
|
|
|
<div class="tile is-parent ">
|
2017-02-09 16:55:30 +01:00
|
|
|
<%= render '/partials/_events_tile.*',
|
2017-02-09 15:04:12 +01:00
|
|
|
article: event,
|
|
|
|
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
2017-02-09 16:55:30 +01:00
|
|
|
location: event[:location],
|
2017-02-13 19:07:49 +01:00
|
|
|
color: event[:color] %>
|
2017-02-09 15:04:12 +01:00
|
|
|
</div>
|
2017-02-09 16:55:30 +01:00
|
|
|
<!-- Render old event_preview when using subevent, for now not used
|
2017-02-09 15:04:12 +01:00
|
|
|
<% else %>
|
|
|
|
<% sub_events(event).each do |sub_event| %>
|
|
|
|
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2017-02-09 16:55:30 +01:00
|
|
|
-->
|
2016-10-03 15:15:48 +02:00
|
|
|
<% end %>
|
2017-02-09 15:04:12 +01:00
|
|
|
</div>
|
2016-10-03 15:15:48 +02:00
|
|
|
<% end %>
|
2017-02-09 15:04:12 +01:00
|
|
|
</div>
|
|
|
|
<div class="content ">
|
2016-10-03 15:15:48 +02:00
|
|
|
<h1>Past events</h1>
|
|
|
|
</div>
|
2017-02-09 15:04:12 +01:00
|
|
|
<% past_events.each_slice(2) do |slice| %>
|
2016-08-27 01:23:22 +02:00
|
|
|
<!-- <hr class="divider"> -->
|
2017-02-09 15:04:12 +01:00
|
|
|
<div class="columns">
|
|
|
|
<% slice.each do |event| %>
|
|
|
|
<% if (sub_events(event)).empty? %>
|
|
|
|
<div class="tile is-parent ">
|
2017-02-09 16:55:30 +01:00
|
|
|
<%= render '/partials/_events_tile.*',
|
2017-02-09 15:04:12 +01:00
|
|
|
article: event,
|
|
|
|
small_text: event[:time].strftime('%A %d %B %Y %H:%M'),
|
2017-02-09 16:55:30 +01:00
|
|
|
location: event[:location],
|
2017-02-13 19:07:49 +01:00
|
|
|
color: event[:color] %>
|
2017-02-09 15:04:12 +01:00
|
|
|
</div>
|
2017-02-09 16:55:30 +01:00
|
|
|
<!-- Render old event_preview when using subevent, for now not used
|
2017-02-09 15:04:12 +01:00
|
|
|
<% else %>
|
|
|
|
<% sub_events(event).each do |sub_event| %>
|
|
|
|
<%= render '/partials/_event_preview.*', event: sub_event, main_event: event %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2017-02-09 16:55:30 +01:00
|
|
|
-->
|
2016-08-27 03:50:40 +02:00
|
|
|
<% end %>
|
2017-02-09 15:04:12 +01:00
|
|
|
</div>
|
|
|
|
<%end%>
|
|
|
|
|
2016-08-24 01:01:17 +02:00
|
|
|
</div>
|