Remove year from planned events since it doesn't really make sense
This commit is contained in:
parent
a570d649be
commit
de81efe189
2 changed files with 3 additions and 3 deletions
|
@ -38,11 +38,11 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% unless planned_events(@item[:academic_year]).empty? %>
|
<% unless planned_events().empty? %>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>Planned events</h1>
|
<h1>Planned events</h1>
|
||||||
</div>
|
</div>
|
||||||
<% planned_events(@item[:academic_year]).each_slice(1) do |slice| %>
|
<% planned_events().each_slice(1) do |slice| %>
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<% slice.each do |event| %>
|
<% slice.each do |event| %>
|
||||||
<div class="tile is-parent ">
|
<div class="tile is-parent ">
|
||||||
|
|
|
@ -17,7 +17,7 @@ module EventsHelper
|
||||||
all_events(year).reject { |x| x[:concrete] == false or x[:time] <= Date.today}
|
all_events(year).reject { |x| x[:concrete] == false or x[:time] <= Date.today}
|
||||||
end
|
end
|
||||||
|
|
||||||
def planned_events(year = nil)
|
def planned_events()
|
||||||
@items.find_all('/planned_events/*.md')
|
@items.find_all('/planned_events/*.md')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue