<% unless upcoming_events_in_year_or_tag(@item).empty? %>

Upcoming events

<% upcoming_events_in_year_or_tag(@item).each_slice(1) do |slice| %>
<% slice.each do |event| %>
<%= render '/partials/_events_tile.*', event: event %>
<% end %>
<% end %> <% end %> <% unless past_events_in_year_or_tag(@item).empty? %>

Past events

<% past_events_in_year_or_tag(@item).each_slice(1) do |slice| %>
<% slice.each do |event| %>
<%= render '/partials/_events_tile.*', event: event %>
<% end %>
<% end %> <% end %> <% if past_events_in_year_or_tag(@item).empty? and upcoming_events_in_year_or_tag(@item).empty? %>

Sorry.

No events planned yet this year.

Soon™.

<% end %>
<% unless soon_events.empty? %>
<% end %>