2017-06-07 10:23:02 +02:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-2 is-narrow">
|
|
|
|
<aside class="menu">
|
|
|
|
<p class="menu-label">
|
|
|
|
Academiejaar
|
|
|
|
</p>
|
|
|
|
<ul class="menu-list">
|
|
|
|
<% academic_years_event_items.each do |year, item| %>
|
|
|
|
<% if @item_rep && @item_rep.path == item.path %>
|
|
|
|
<li>
|
|
|
|
<a href="#" class="is-active">
|
|
|
|
<%= pretty_year(year) %>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li>
|
|
|
|
<%= link_to pretty_year(year), item %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
<% unless upcoming_events(@item[:academic_year]).empty? %>
|
|
|
|
<div class="content">
|
|
|
|
<h1>Upcoming events</h1>
|
|
|
|
</div>
|
2018-04-09 22:09:11 +02:00
|
|
|
<% upcoming_events(@item[:academic_year]).each_slice(1) do |slice| %>
|
2017-06-07 10:23:02 +02:00
|
|
|
<div class="columns">
|
|
|
|
<% slice.each do |event| %>
|
|
|
|
<div class="tile is-parent ">
|
|
|
|
<%= render '/partials/_events_tile.*', event: event %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% unless past_events(@item[:academic_year]).empty? %>
|
|
|
|
<div class="content">
|
|
|
|
<h1>Past events</h1>
|
|
|
|
</div>
|
2018-04-09 22:09:11 +02:00
|
|
|
<% past_events(@item[:academic_year]).each_slice(1) do |slice| %>
|
2017-06-07 10:23:02 +02:00
|
|
|
<div class="columns">
|
|
|
|
<% slice.each do |event| %>
|
|
|
|
<div class="tile is-parent ">
|
|
|
|
<%= render '/partials/_events_tile.*', event: event %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2019-08-17 15:09:27 +02:00
|
|
|
|
|
|
|
<% if past_events(@item[:academic_year]).empty? and upcoming_events(@item[:academic_year]).empty? %>
|
|
|
|
<div class="content has-text-centered">
|
|
|
|
<h1>Sorry.</h1>
|
|
|
|
<h2>No events planned yet this year.</h2>
|
|
|
|
<h4 class="has-text-grey"><i>Soon TM.<i></h4>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2017-06-07 10:23:02 +02:00
|
|
|
</div>
|
2019-12-06 20:37:33 +01:00
|
|
|
|
|
|
|
<% unless soon_events().empty? %>
|
|
|
|
<div class="column is-3 is-narrow">
|
2019-12-06 22:14:02 +01:00
|
|
|
<div class="menu">
|
|
|
|
<div class="content">
|
|
|
|
<h1>
|
|
|
|
Soon TM.
|
|
|
|
</h1>
|
|
|
|
</div>
|
2019-12-06 20:37:33 +01:00
|
|
|
<% soon_events().each do |event| %>
|
2019-12-06 22:14:02 +01:00
|
|
|
<div class="tile box highlighted"
|
2019-12-06 20:37:33 +01:00
|
|
|
<% if event[:color] %>
|
|
|
|
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= event[:color] %>;"
|
|
|
|
<% else %>
|
|
|
|
style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:'light-grey';"
|
|
|
|
<% end %>
|
|
|
|
>
|
2019-12-06 22:14:02 +01:00
|
|
|
<div class="content event-content has-text-centered">
|
|
|
|
<h3 style="color: white;"><%= event[:title] %></h3>
|
2019-12-06 20:37:33 +01:00
|
|
|
<p><%= event[:description] %></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2019-12-06 22:14:02 +01:00
|
|
|
</div>
|
2019-12-06 20:37:33 +01:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2017-06-07 10:23:02 +02:00
|
|
|
</div>
|