app/views/pupils/analysis/electricity_line.html.erb
<% content_for :page_title, strip_tags(t('pupils.analysis.electricity_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: :electricity), class: 'btn btn-rounded' %>
</div>
<div>
<h1><%= t('pupils.analysis.electricity_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: :electricity, chart_config: {energy: 'Electricity', presentation: 'Line', secondary_presentation: '7days'} do %>
<%= t('pupils.analysis.find_electricity_use_7days') %>
<% end %>
<%= render 'chart_link', school: @school, energy: :electricity, chart_config: {energy: 'Electricity', presentation: 'Line', secondary_presentation: 'Base'} do %>
<%= t('pupils.analysis.find_electricity_use_lights') %>
<% end %>
<%= render 'usage_link', school: @school, energy: :electricity, usage_config: {period: :daily} do %>
<%= t('pupils.analysis.compare_electricity_on_2_days') %>
<% end %>
<% if @school.filterable_meters(:electricity).count > 1 %>
<%= render 'usage_link', school: @school, energy: :electricity, usage_config: {period: :daily, split_meters: true} do %>
<%= t('pupils.analysis.compare_electricity_use_by_meters') %>
<% end %>
<% end %>
</div>