zeus.ugent.be/content/events.erb

62 lines
1.8 KiB
Text
Raw Normal View History

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