app/views/comparisons/thermostatic_control/_table.html.erb
<%= component 'comparison_table',
report: report, advice_page: advice_page, table_name: table_name, index_params: index_params,
headers: headers, colgroups: colgroups, advice_page_tab: advice_page_tab do |c| %>
<% @results.each do |result| %>
<% c.with_row do |r| %>
<% r.with_school school: result.school %>
<% r.with_var val: result.r2, unit: :r2 %>
<% r.with_var val: result.potential_saving_gbp, unit: :£ %>
<% end %>
<% end %>
<% end %>