<%
# Parameters:
#  dayOfMonth: Any day of the month to render the header for.
%>

<% @time_span_to_display&.each do |currentDay|%>
  <%
    if (currentDay.day == 1) then
      klass = ' firstDayOfMonth'
    elsif (currentDay.day == currentDay.end_of_month.day) then
      klass = ' lastDayOfMonth'
    else
      klass = ''
    end
  %>
  <th class="day-of-month<%= klass %>" scope="col">
    <%= tag.small currentDay.day.to_s %>
  </th>
<% end %>