app/views/pupils/analysis/gas_bar.html.erb
<% content_for :page_title, strip_tags(t('pupils.analysis.gas_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: :gas), class: 'btn btn-rounded' %>
</div>
<div>
<h1><%= t('pupils.analysis.gas_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: :gas, chart_config: {energy: 'Gas', presentation: 'Bar', secondary_presentation: 'Bench'} do %>
<%= t('pupils.analysis.find_gas_comparison') %>
<% end %>
<%= render 'chart_link', school: @school, energy: :gas, chart_config: {energy: 'Gas', presentation: 'Bar', secondary_presentation: 'Week'} do %>
<%= t('pupils.analysis.find_gas_use_last_year') %>
<% end %>
<%= render 'chart_link', school: @school, energy: :gas, chart_config: {energy: 'Gas', presentation: 'Bar', secondary_presentation: 'Year'} do %>
<%= t('pupils.analysis.find_gas_use_long_term') %>
<% end %>
<%= render 'usage_link', school: @school, energy: :gas, usage_config: {period: :weekly} do %>
<%= t('pupils.analysis.compare_gas_in_2_weeks') %>
<% end %>
<% if @school.filterable_meters(:gas).count > 1 %>
<%= render 'usage_link', school: @school, energy: :gas, usage_config: {period: :weekly, split_meters: true} do %>
<%= t('pupils.analysis.compare_gas_use_by_meters') %>
<% end %>
<% end %>
</div>