Remove year from planned events since it doesn't really make sense

This commit is contained in:
redfast00 2019-12-06 14:44:31 +01:00
parent a570d649be
commit de81efe189
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C
2 changed files with 3 additions and 3 deletions

View file

@ -38,11 +38,11 @@
<% end %>
<% end %>
<% unless planned_events(@item[:academic_year]).empty? %>
<% unless planned_events().empty? %>
<div class="content">
<h1>Planned events</h1>
</div>
<% planned_events(@item[:academic_year]).each_slice(1) do |slice| %>
<% planned_events().each_slice(1) do |slice| %>
<div class="columns">
<% slice.each do |event| %>
<div class="tile is-parent ">

View file

@ -17,7 +17,7 @@ module EventsHelper
all_events(year).reject { |x| x[:concrete] == false or x[:time] <= Date.today}
end
def planned_events(year = nil)
def planned_events()
@items.find_all('/planned_events/*.md')
end