<% content_for :page_title, 'School Comparison Tool' %>

<% if @filter_names.present? %>
  <h1>School Comparison Tool for <%= @filter_names %></h1>
<% else %>
  <h1>School Comparison Tool</h1>
<% end %>

<p>This tool allows you to compare the energy performance of a number of schools within a Local Authority group or across the whole of Energy Sparks. The aim is to allow you to identify the best and worst performing schools to provide examples of best practice and to identify the schools needing the most support to improve their energy management. You can compare schools against a range of different benchmarks, choosing from the list below:</p>

<p><%= link_to 'See all on one page', all_benchmarks_path(benchmark: @benchmark_filter) %></p>

<% @page_groups.each do |page_group| %>
  <h2><%= page_group[:name] %></h2>
  <ul>
    <% page_group[:benchmarks].each do |benchmark, title| %>
      <li><%= link_to title, benchmark_path(benchmark_type: benchmark, benchmark: @benchmark_filter) %></li>
    <% end %>
  </ul>
<% end %>

<% content_for :page_title, 'School Comparison Tool' %>

<% if @filter_names.present? %>
  <h1>School Comparison Tool for <%= @filter_names %></h1>
<% else %>
  <h1>School Comparison Tool</h1>
<% end %>

<p>This tool allows you to compare the energy performance of a number of schools within a Local Authority group or across the whole of Energy Sparks. The aim is to allow you to identify the best and worst performing schools to provide examples of best practice and to identify the schools needing the most support to improve their energy management. You can compare schools against a range of different benchmarks, choosing from the list below:</p>

<p><%= link_to 'See all on one page', all_benchmarks_path(benchmark: @benchmark_filter) %></p>

<% @page_groups.each do |page_group| %>
  <h2><%= page_group[:name] %></h2>
  <ul>
    <% page_group[:benchmarks].each do |benchmark, title| %>
      <li><%= link_to title, benchmark_path(benchmark_type: benchmark, benchmark: @benchmark_filter) %></li>
    <% end %>
  </ul>
<% end %>


<%= render 'home/testimonial',
  quote: "The comparison function is amazing&hellip; The data in the comparison tab will be very useful for analysing and reporting purposes, and it offers a wide variety of benchmarks. I think this is a 'fab' idea and very useful tool.",
  by: 'Kremena Renwick',
  title: 'Local Authority Sustainability Officer (Energy), Highland Council',
  location: 'Highlands, Scotland'
%>

Add quote to benchmark page
Add quote to benchmark page
