<%
# Parameters:
#  dayOfWeek: Any day of the week to render the header for.
%>

<% @time_span_to_display&.each do |currentDay|%>
  <%
    if (currentDay.cwday == 1) then
      klass = ' firstDayOfWeek'
    elsif (currentDay.cwday == 7) then
      klass = ' lastDayOfWeek'
    else
      klass = ''
    end
  %>
  <th class="workload_hdr day-of-week <%= klass %>" scope="col">
    <%= tag.small day_name(currentDay.cwday).first %>
  </th>
<% end %>