<%
title ||= nil
year ||= nil
events ||= []
headings ||= []
%>

<div class="app-c-calendar">
  <% table_caption = capture do %>
    <span class="govuk-visually-hidden"><%= title %></span> <%= year.to_s %>
  <% end %>

  <%= render "govuk_publishing_components/components/table", {
    caption: table_caption,
    caption_classes: "govuk-heading-s",
    head: headings,
    rows: events.each.map { |event| [
      { :text => l(event[:date], :format => '%e %B') },
      { :text => l(event[:date], :format => '%A') },
      { :text => event[:title] + (event[:notes].blank? ? '' : " (#{event[:notes].downcase})") }
     ] }
  } %>
</div>

<%
title ||= nil
year ||= nil
events ||= []
headings ||= []
%>

<div class="app-c-calendar">
  <% table_caption = capture do %>
    <span class="govuk-visually-hidden"><%= title %></span> <%= year.to_s %>
  <% end %>

  <%= render "govuk_publishing_components/components/table", {
    caption: table_caption,
    caption_classes: "govuk-heading-s",
    head: headings,
    first_cell_is_header: true,
    rows: events.each.map { |event| [
      { :text => l(event[:date], :format => '%e %B') },
      { :text => l(event[:date], :format => '%A') },
      { :text => event[:title] + (event[:notes].blank? ? '' : " (#{event[:notes].downcase})") }
     ] }
  } %>
</div>

Make first column row header in bank holiday tables
Make first column row header in bank holiday tables
