Extract partial

This commit is contained in:
Jorge Manrubia
2025-11-21 10:32:32 +01:00
parent e4558f00ab
commit b0d732675c
2 changed files with 8 additions and 7 deletions
@@ -0,0 +1,7 @@
<div class="events--grid">
<% column.events_by_hour.each do |hour, events| %>
<% if events.any? %>
<%= render partial: "events/event", collection: events, cached: true %>
<% end %>
<% end %>
</div>
@@ -16,10 +16,4 @@
</h1>
<% end %>
<div class="events--grid">
<% @column.events_by_hour.each do |hour, events| %>
<% if events.any? %>
<%= render partial: "events/event", collection: events, cached: true %>
<% end %>
<% end %>
</div>
<%= render "events/day_timeline/columns/events", column: @column %>