BathHacked/energy-sparks

View on GitHub
app/views/pupils/analysis/storage_heaters_bar.html.erb

Summary

Maintainability
Test Coverage
<% content_for :page_title, strip_tags(t('pupils.analysis.storage_heater_data_html')) %>

<div class="d-flex justify-content-between align-items-center">
  <div>
    <%= link_to t('common.labels.back'),  pupils_school_analysis_path(@school, category: :storage_heaters), class: 'btn btn-rounded' %>
  </div>
  <div>
    <h1><%= t('pupils.analysis.storage_heater_data_html') %></h1>
  </div>
  <div></div>
</div>
<hr />

<h2><%= t('pupils.analysis.i_want_to') %></h2>

<div class="row">

  <%= render 'chart_link', school: @school, energy: :storage, chart_config: {energy: 'Storage Heaters', presentation: 'Bar', secondary_presentation: 'Bench'} do %>
    <%= t('pupils.analysis.find_storage_heaters_comparison') %>
  <% end %>

  <%= render 'chart_link', school: @school, energy: :storage, chart_config: {energy: 'Storage Heaters', presentation: 'Bar', secondary_presentation: 'Week'} do %>
    <%= t('pupils.analysis.find_storage_heaters_use_last_year') %>
  <% end %>

  <%= render 'chart_link', school: @school, energy: :storage, chart_config: {energy: 'Storage Heaters', presentation: 'Bar', secondary_presentation: 'Year'} do %>
    <%= t('pupils.analysis.find_storage_heaters_use_long_term') %>
  <% end %>

</div>