diff --git a/app/views/events/day_timeline/columns/_events.html.erb b/app/views/events/day_timeline/columns/_events.html.erb new file mode 100644 index 000000000..ac14102af --- /dev/null +++ b/app/views/events/day_timeline/columns/_events.html.erb @@ -0,0 +1,7 @@ +
+ <% column.events_by_hour.each do |hour, events| %> + <% if events.any? %> + <%= render partial: "events/event", collection: events, cached: true %> + <% end %> + <% end %> +
diff --git a/app/views/events/day_timeline/columns/show.html.erb b/app/views/events/day_timeline/columns/show.html.erb index 56a7d3c4c..3ef8e09e2 100644 --- a/app/views/events/day_timeline/columns/show.html.erb +++ b/app/views/events/day_timeline/columns/show.html.erb @@ -16,10 +16,4 @@ <% end %> -
- <% @column.events_by_hour.each do |hour, events| %> - <% if events.any? %> - <%= render partial: "events/event", collection: events, cached: true %> - <% end %> - <% end %> -
\ No newline at end of file +<%= render "events/day_timeline/columns/events", column: @column %> \ No newline at end of file