<section class="events__day" data-controller="related-element"
  data-related-element-highlight-class="event--related">
  <% if day_timeline.has_activity? %>
    <h2 class="events__day-header">
      <%= local_datetime_tag day_timeline.day, style: :agoorweekday, class: "txt-reversed" %>
    </h2>

    <div class="events__columns">
      <%= render "events/day_timeline_column", event_type: "added", day_timeline: day_timeline %>
      <%= render "events/day_timeline_column", event_type: "updated", day_timeline: day_timeline %>
      <%= render "events/day_timeline_column", event_type: "closed", day_timeline: day_timeline %>
    </div>

    <%= render "events/empty_days", day_timeline: day_timeline %>
  <% else %>
    <%= render "events/empty_days", day_timeline: day_timeline %>
  <% end %>
</section>
