BathHacked/energy-sparks

View on GitHub
app/views/schools/advice/gas_long_term/_comparison.html.erb

Summary

Maintainability
Test Coverage
<%= render 'schools/advice/section_title', section_id: 'comparison',
                                           section_title: t('advice_pages.gas_long_term.insights.comparison.title') %>

<p>
  <%= t('advice_pages.gas_long_term.insights.comparison.how_do_you_compare',
        school_type: t("common.school_types.#{school.school_type}")) %>
</p>

<div class="col">
  <%= component 'school_comparison', id: 'gas-comparison', comparison: @benchmarked_usage do |c| %>
    <% c.with_footer { advice_t('gas_long_term.insights.comparison.callout_footer') } %>
  <% end %>
</div>

<% if school.school_group.present? %>
  <p>
    <%= t('advice_pages.gas_long_term.insights.comparison.more_detail_html',
          link: compare_for_school_group_path(:annual_heating_costs_per_floor_area, school)) %>
  </p>
<% end %>