<table cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <%= render :partial => 'list_column_headings' %>
    </tr>
  </thead>
  <tbody class="messages">
    <tr>
      <td colspan="<%= active_scaffold_config.list.columns.length + 1 -%>" class="messages-container">
        <%= render :partial => 'list_messages' %>
      </td>
    </tr>
  </tbody>
  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
    <% end -%>
    <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
      <%= render :partial => 'list_calculations' %>
    <% end -%>
  </tbody>
</table>
<%= render :partial => 'list_pagination' %>

<table cellpadding="0" cellspacing="0">
  <thead>
    <tr>
      <%= render :partial => 'list_column_headings' %>
    </tr>
  </thead>
  <tbody class="messages">
    <tr>
      <td colspan="<%= active_scaffold_config.list.columns.length + (active_scaffold_config.list.mark_records ? 2 : 1) -%>" class="messages-container">
        <%= render :partial => 'list_messages' %>
      </td>
    </tr>
  </tbody>
  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
    <% end -%>
    <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
      <%= render :partial => 'list_calculations' %>
    <% end -%>
  </tbody>
</table>
<%= render :partial => 'list_pagination' %>

Fix colspan with mark records enabled
Fix colspan with mark records enabled
